Branch Coverage

blib/lib/HTTP/MultiPartParser.pm
Criterion Covered Total %
branch 8 26 30.7


line true false branch
28 27 69 if ($p eq 'boundary') { }
69 0 elsif ($p eq 'on_header' or $p eq 'on_body' or $p eq 'on_error') { }
0 0 elsif ($p eq 'max_header_size' or $p eq 'max_preamble_size') { }
0 0 elsif ($p eq 'on_header_as') { }
29 0 27 unless ref \$v eq 'SCALAR' and defined $v and $v =~ /$ValidBoundary/
36 0 69 unless ref $v eq 'CODE'
42 0 0 unless ref \$v eq 'SCALAR' and defined $v and $v =~ /\A [1-9][0-9]* \z/x
47 0 0 unless ref \$v eq 'SCALAR' and defined $v and $v =~ /\A (?: unparsed | lines) \z/x
57 0 81 unless exists $$self{$p}
67 0 38 unless @_ == 2
72 0 27 unless @_ == 1
77 0 0 unless @_ == 1
83 0 0 unless @_ == 1