Branch Coverage

blib/lib/Mojo/UserAgent/Mockable/Request/Compare.pm
Criterion Covered Total %
branch 30 34 88.2


line true false branch
23 0 168 unless ($r1->$Mojo::UserAgent::Mockable::Request::Compare::_isa('Mojo::Message::Request'))
28 0 168 unless ($r2->$Mojo::UserAgent::Mockable::Request::Compare::_isa('Mojo::Message::Request'))
33 1 167 if ($r1->method ne $r2->method)
38 83 84 unless ($self->_compare_url($r1->url, $r2->url))
42 3 81 if (not $self->ignore_body and $r1->body ne $r2->body)
47 30 51 if ($self->ignore_headers ne 'all')
56 2 28 if (scalar keys %{$h1;} ne scalar keys %{$h2;})
62 1 175 unless (defined $h2->{$header})
67 1 174 if ($h1->{$header} ne $h2->{$header})
82 0 167 unless (ref $u1)
87 1 166 unless (ref $u2)
95 0 785 if $self->can($ignore) and $self->$ignore
99 22 763 if ($val1 ne $val2)
107 5 140 if ($p1->to_string ne $p2->to_string)
117 2 138 if (scalar keys %{$q1;} != scalar keys %{$q2;})
128 1 571 if (ref $val2 eq 'ARRAY')
133 54 518 if ($val1 ne $val2)