Branch Coverage

blib/lib/OGDL/Graph.pm
Criterion Covered Total %
branch 93 176 52.8


line true false branch
48 0 0 unless ($list2)
59 0 0 if ($$l[$j] == $node)
69 0 1 unless ($node)
111 0 0 if ($pat =~ /(.*)(\[(\d*)\])/) { }
112 0 0 if ($3 eq '') { }
114 0 0 if ($1 eq '') { }
126 0 0 if ($$g{'name'} =~ /$namepat/)
129 0 0 if ($inum > 0 and $$rnum != $inum)
132 0 0 if ($#path == -1)
148 0 0 if ($#path < 0)
161 0 0 if ($pat =~ /(.*)(\[(\d*)\])/) { }
162 0 0 if ($3 eq '') { }
164 0 0 if ($1 eq '') { }
173 0 0 if ($inum >= 0)
181 0 0 if ($$n{'name'} =~ /$namepat/) { }
184 0 0 if ($inum >= 0 and $num != $inum) { }
189 0 0 if ($#path == -1) { }
192 0 0 if ($inum >= 0) { }
199 0 0 if ($inum >= 0)
214 0 0 if ($#path < 0)
216 0 0 if ($#path < 0)
233 9 17 if ($#path < 0)
234 0 9 if ($node)
244 1 16 if ($pat =~ /(.*)(\[(\d*)\])/) { }
245 0 1 if ($3 eq '') { }
247 0 1 if ($1 eq '') { }
253 3 14 if ($namepat =~ /[*?]/)
258 1 16 if ($inum >= 0)
266 11 1 if ($$n{'name'} =~ /^$namepat$/)
269 11 0 if ($inum < 0 or $num == $inum)
277 12 5 if (not $exist and $uniq)
280 11 1 if ($inum < 0)
296 0 3 if ($str)
325 35 55 if ($$_{'name'} eq $name)
343 14 16 if ($$_{'name'} eq $name)
344 5 9 if ($n-- == 0)
363 6 8 if ($$_{'name'} eq $name)
384 0 96 if (not $_ and $_ ne '0')
386 35 61 if ($_ eq '.')
389 26 35 if (/\[(\d*)\]/) { }
392 2 24 if ($1 eq '') { }
401 7 19 if ($prev)
402 5 2 if ($i > 0) { }
2 0 elsif ($i == 0) { }
420 0 54 if ($i == -1)
436 0 0 if ($node)
438 0 0 if ($node)
452 4 128 if ($s =~ /[ \n\r]/) { }
453 2 2 if ($blockquote and $pending) { }
461 24 1536 if ($pend == 1)
462 24 1536 if ($c eq "\n")
467 0 2 if ($pend) { }
471 2 0 if ($pending)
472 0 2 if ($sameline) { }
481 2 0 unless ($noquote)
484 24 1536 if ($pend == 1)
485 24 1536 if ($c eq "\n") { }
4 3064 elsif ($c eq '"' and not $noquote) { }
491 2 0 unless ($noquote)
496 119 9 if ($pending == 1) { }
497 0 119 if ($sameline) { }
525 0 132 if ($group == 0)
526 3 55 if (not $noblockquote and $single and $#l < 0)
527 1 0 if (not $singlequote and $indentlevel == 0 and $single and $#l < 0 || $depth == 0)
529 18 114 if ($#l == 0) { }
539 83 49 if ($depth == 0 or $#l < 0)
540 0 49 if ($group > 0)
541 0 49 if ($group == 0)
542 0 49 if ($sameline)
543 0 0 if ($#l > 0)
549 0 123 if ($sameline and $j > 0)
554 0 49 if ($sameline)
555 0 0 if ($#l > 0)
574 0 3 if ($params{'indentwidth'})
575 2 1 if ($params{'singlequote'})
576 2 1 if ($params{'filehandle'})
577 0 3 if ($params{'depth'})
578 0 3 if (exists $params{'group'})
579 2 1 if ($params{'noblockquote'})
580 2 1 if (defined $params{'printroot'} and $params{'printroot'} eq '0') { }
585 8 0 if ($pending)
591 1 0 if ($pending)
606 0 0 unless open my $fh, ">$file"
618 0 3 if (not defined $path or $path eq '' or $path eq '.')
625 7 20 if ($c eq '.') { }
0 20 elsif ($c eq '\\') { }
630 0 0 if ($j == $n) { }
633 0 0 if ($c eq '.') { }