Branch Coverage

blib/lib/HTTP/WebTest/Plugin.pm
Criterion Covered Total %
branch 48 64 75.0


line true false branch
79 1042 1718 defined $value ? :
103 11525 7 if (defined $self->webtest->current_test) { }
105 766 10759 defined $value ? :
110 870 10662 defined $value ? :
134 299 51 unless defined $value
157 1440 39 unless defined $value
170 34 16416 if (ref $value eq 'CODE')
174 21 13 unless (${$self->_sub_cache;}{$value})
181 1212 15238 if (ref $value eq 'ARRAY') { }
0 15238 elsif (ref $value eq 'HASH') { }
223 6224 960 unless defined $value
226 0 960 unless defined $type
289 0 988 unless defined $method
294 952 36 unless defined $args
296 0 988 if $@
369 0 167 unless ref $value eq 'ARRAY'
372 154 13 unless @spec
379 0 20 unless defined $type
382 1 19 if ($type eq '...')
394 7 6 if defined $spec[0] and $spec[0] eq '...'
396 0 13 if @spec
420 163 228 if ref $value
423 205 23 unless defined $optional_regexp
425 0 23 unless $value =~ /$optional_regexp/i
445 0 417 unless ref $value eq 'SCALAR'
467 163 14 if ($@)
468 0 163 unless defined ref $value and UNIVERSAL::isa($value, 'URI')
472 0 177 unless $ok
495 0 23 if ($@) { }
496 0 0 unless ref $value eq 'HASH'
499 0 23 unless @$value % 2 == 0
503 0 23 unless $ok