Branch Coverage

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


line true false branch
63 1 34 if (ref $req eq 'ARRAY')
79 3 32 unless ($apps->uri_to_app($req->uri))
81 1 2 if ($req->uri =~ m[^/])
92 1 34 if (my $error = $@)
100 35 0 if (defined $res)
105 31 4 if ($ok and defined $check)
108 9 22 if ($delta)
124 6 29 $res->header('Location') ? :
35 0 $res ? :
151 70 85 if $caller[0] ne 'Test2::Tools::HTTP'
159 1 71 unless defined(my $build = Test2::Compare::get_build())
160 1 70 unless $build->isa('Test2::Tools::HTTP::ResponseCompare')
167 1 69 if defined $caller[5]
225 0 0 $_ ? :
245 0 0 $_ ? :
297 1 10 unless @values
298 4 6 if (ref $expect eq 'ARRAY' or eval { do { $expect->isa('Test2::Compare::Array') } }) { }
324 6 0 defined $content_type ? :
344 6 0 defined $charset ? :
421 3 1 defined $location ? :
451 4 0 unless (defined $ua_wrapper or $new)
458 4 33 if ($new)
470 5 8 @_ == 1 ? :
487 1 3 @_ == 1 ? :
489 1 3 unless defined wantarray
499 2 1 if ref $old
524 2 1 if ref $app
571 3 52 if defined $alt_check
575 0 55 if ($error) { }
587 0 52 $val eq '' ? :
52 3 $exists ? :