Branch Coverage

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


line true false branch
23 0 238 unless ($r1->$Mojo::UserAgent::Mockable::Request::Compare::_isa("Mojo::Message::Request"))
28 0 238 unless ($r2->$Mojo::UserAgent::Mockable::Request::Compare::_isa("Mojo::Message::Request"))
33 1 237 if ($r1->method ne $r2->method)
38 137 100 unless ($self->_compare_url($r1->url, $r2->url))
42 3 97 if (not $self->ignore_body and $r1->body ne $r2->body)
47 26 71 if ($self->ignore_headers ne "all")
56 2 24 if (scalar keys %{$h1;} ne scalar keys %{$h2;})
62 1 154 unless (defined $h2->{$header})
67 1 153 if ($h1->{$header} ne $h2->{$header})
82 0 237 unless (ref $u1)
87 1 236 unless (ref $u2)
95 0 1135 if $self->can($ignore) and $self->$ignore
99 22 1113 if ($val1 ne $val2)
107 5 210 if ($p1->to_string ne $p2->to_string)
117 2 208 if (scalar keys %{$q1;} != scalar keys %{$q2;})
128 1 912 if (ref $val2 eq "ARRAY")
133 108 805 if ($val1 ne $val2)