Branch Coverage

blib/lib/Java/Doc.pm
Criterion Covered Total %
branch 30 60 50.0


line true false branch
29 6 231 if ($i >= 0)
43 12 60 if $t =~ /$_/s
55 1 0 $fileOrString =~ /\n/s ? :
66 18 12 if ($state == 0) { }
12 0 elsif ($state == 1) { }
67 1 17 if (/\A\s*package\s+((\w+|\.)+)/) { }
2 15 elsif (m[\A.*?class\s+(\w+)\s*\{?\s*//C\s+(.*?)\s*\Z]) { }
0 15 elsif (m[\A\s*}\s*//C\s+(\w+)]) { }
3 12 elsif (m[\A\s*(.*?) \s+(\w+) \s*(\x28\s*\x29)? \s*\x28?\s* //(M|c|O=\S+)\s+(.*?)\s*\Z]x) { }
79 0 0 unless (@class)
82 0 0 if ($1 ne $class[-1]) { }
88 0 0 if $r
89 0 0 if $n
110 0 3 if ($res =~ /\Ac\Z/s) { }
0 3 elsif ($res =~ /\AO=(.+?)\Z/s) { }
116 0 0 $comment =~ /\.\Z/s ? :
120 3 0 if ($package and $class) { }
126 3 0 unless $empty or $override
131 0 0 unless $package
132 0 0 unless $class
137 9 3 if (m[\A.\s*(.+?)\s+(\w+)\s*[,\)\{]*\s*//P\s+(.*?)\s*\Z]) { }
147 3 0 if ($package and $class and $method) { }
149 3 0 if (my $p = $m->{'parameters'})
150 3 0 if (my(@p) = @$p)
179 0 1 unless @c
277 3 0 if (my $parameters = $method{'parameters'})
356 0 1 if (my $file = $javaDoc->target)
562 0 1 if eval "eof(${p}::DATA)"
564 0 1 if $@
566 0 1 if $@