Branch Coverage

blib/lib/Java/Doc.pm
Criterion Covered Total %
branch 32 74 43.2


line true false branch
29 6 195 if ($i >= 0)
42 12 60 if $t =~ /$_/s
55 1 0 $fileOrString =~ /\n/s ? :
56 0 1 unless $snf
69 30 0 if $snf
73 18 12 if ($state == 0) { }
12 0 elsif ($state == 1) { }
74 1 17 if (/\A\s*package\s+((\w+|\.)+)/) { }
2 15 elsif (m[\A.*?class\s+(\S+)\s*\{?\s*//C\s+(.*?)\s*\Z]) { }
0 15 elsif (m[\A\s*}\s*//C\s+(\S+)]) { }
3 12 elsif (m[\A\s*(.*?) \s+(\w+) \s*(\x28\s*\x29\s*(?:\x7b\s*\x7d)?)? \s*\x28?\s* //(M|c|O=\S+)\s+(.*?)\s*\Z]x) { }
86 0 0 if (not @class) { }
0 0 elsif ($1 ne $class[-1]) { }
95 0 0 if $r
96 0 0 if $n
117 0 3 if ($res =~ /\Ac\Z/s) { }
0 3 elsif ($res =~ /\AO=(.+?)\Z/s) { }
119 0 0 if ($package and $class) { }
0 0 elsif (not $package) { }
0 0 elsif (not $class) { }
131 0 0 $comment =~ /\.\Z/s ? :
135 3 0 if ($package and $class) { }
141 3 0 unless $empty or $override
145 0 0 unless $package
146 0 0 unless $class
151 9 3 if (m[\A.\s*(.+?)\s+(\w+)\s*[,\)\{]*\s*//P\s+(.*?)\s*\Z]) { }
161 3 0 if ($package and $class and $method) { }
0 0 elsif (not $package) { }
0 0 elsif (not $class) { }
163 3 0 if (my $p = $m->{'parameters'})
164 3 0 if (my(@p) = @$p)
203 0 1 unless @c
302 3 0 if (my $parameters = $method{'parameters'})
379 0 1 if (my $file = $javaDoc->target)
585 0 1 if eval "eof(${p}::DATA)"
587 0 1 if $@
589 0 1 if $@