Branch Coverage

blib/lib/HTTP/WebTest/API.pm
Criterion Covered Total %
branch 37 38 97.3


line true false branch
112 683 883 unless ($initialized{$plugin})
113 175 508 if ($plugin->can('start_tests'))
123 107 82 unless $done
137 85 562 if ($plugin->can('end_tests'))
172 3 1 unless ($wtscript =~ /[\r\n]/)
175 0 3 unless $fh->open("< $file")
205 8 12 unless $subresult
231 5 5 if $subresult
250 2 2 $self->num_fail > 0 ? :
299 2 5 unless UNIVERSAL::can($self->parser_package, 'parse')
560 435 1177 if ($plugin->can('prepare_request'))
566 4 190 if ($request->uri eq 'http://MISSING_HOSTNAME/')
588 970 606 if ($plugin->can('check_response'))
596 195 1381 if ($plugin->can('report_test'))
622 84 194 wantarray ? :
675 1 1 if defined $num_fail_ref
676 1 1 if defined $num_succeed_ref
730 1 1 if defined $num_fail_ref
731 1 1 if defined $num_succeed_ref