Branch Coverage

blib/lib/Jar/Manifest.pm
Criterion Covered Total %
branch 16 30 53.3


line true false branch
40 1 1 if lc((split(/\n+/, $para, 0))[0]) =~ /^\s*name/xi
45 0 6 unless $line =~ /.+:.+/
47 0 6 unless defined $k and defined $v
48 0 6 if $k =~ /^\s*$/ or $v =~ /^\s*$/
49 0 6 if (defined $h{$k})
58 1 1 if ($isa_entry) { }
74 0 1 unless ref $in eq 'HASH'
84 0 1 unless (defined $$manifest{'main'}{'Manifest-Version'})
104 0 1 unless $name_attr
162 0 24 unless defined $val
171 0 7 unless defined $val
180 0 6 unless $attr =~ /^[-0-9a-zA-Z_]+$/
184 0 6 unless $attr =~ /[a-zA-Z0-9]+/
187 0 6 if length $attr > 70
212 0 0 unless grep({/-/;} $a) <=> grep({/-/;} $b)