Branch Coverage

blib/lib/Test2/Tools/HTTP.pm
Criterion Covered Total %
branch 51 62 82.2


line true false branch
65 1 34 if (ref $req eq "ARRAY")
81 3 32 unless ($apps->uri_to_app($req->uri))
83 1 2 if ($req->uri =~ m[^/]u)
94 1 34 if (my $error = $@)
102 35 0 if (defined $res)
107 31 4 if ($ok and defined $check)
110 9 22 if ($delta)
126 6 29 $res->header('Location') ? :
35 0 $res ? :
153 70 85 if $caller[0] ne __PACKAGE__
161 1 71 unless defined(my $build = Test2::Compare::get_build())
162 1 70 unless $build->isa("Test2::Tools::HTTP::ResponseCompare")
169 1 69 if defined $caller[5]
227 0 0 $_ ? :
247 0 0 $_ ? :
299 1 10 unless @values
300 4 6 if (ref $expect eq 'ARRAY' or eval { do { $expect->isa('Test2::Compare::Array') } }) { }
326 6 0 defined $content_type ? :
346 6 0 defined $charset ? :
423 3 1 defined $location ? :
453 4 0 unless (defined $ua_wrapper or $new)
460 4 33 if ($new)
472 5 8 @_ == 1 ? :
489 1 3 @_ == 1 ? :
491 1 3 unless defined wantarray
501 2 1 if ref $old
526 2 1 if ref $app
573 3 52 if defined $alt_check
577 0 55 if ($error) { }
589 0 52 $val eq '' ? :
52 3 $exists ? :