Branch Coverage

lib/Graph/Regexp.pm
Criterion Covered Total %
branch 58 98 59.1


line true false branch
44 19 0 if @_ == 2
1 18 if ref $class
82 0 20 if ref $doc and ref $doc ne 'SCALAR'
85 0 0 unless ref $doc or -f $doc
116 0 0 if (@_ > 0)
232 0 20 if $$self{'debug'}
238 2 63 unless $line =~ /^\s+(\d+):(\s+)[A-Z]/
240 0 63 if $$self{'debug'} > 1
249 44 19 if ($line =~ /^([A-Z][A-Z0-9]+)\s*\((\d+)\)/) { }
16 3 elsif ($line =~ /^([A-Z][A-Z0-9-]+)(\s*<(.+)>)?\s*\((\d+)\)/) { }
1 2 elsif ($line =~ /^TRIE-EXACT\s*(\[([^\]]+)\])\s*?\((\d+)\)/) { }
2 0 elsif ($line =~ /^([A-Z][A-Z0-9-]+)\s*(\[([^\]]+)\])\s*?\((\d+)\)/) { }
0 0 elsif ($line =~ /^([A-Z][A-Z0-9]+)\s*\{(\d+),(\d+)\}\s*\((\d+)\)/) { }
0 0 elsif ($line =~ /^([A-Z][A-Z0-9]+)\[[^]]\]\s*\{(\d+),(\d+)\}\s*\((\d+)\)/) { }
0 0 elsif ($line =~ /^PLUS\s*\((\d+)\)/) { }
277 2 0 if ($$entry{'class'} eq 'anyof') { }
0 0 elsif ($$entry{'class'} eq 'nothing') { }
310 0 0 if $$entry{'class'} =~ /^curly/
327 28 35 if $$entry{'class'} =~ /(open|close|branch|end|succeed|curly|minmod|plus|star|whilem)/
333 19 16 if $$entry{'exact'} ne ''
335 19 16 if $$entry{'title'}
341 0 20 if (keys %$entries == 0)
415 28 35 unless exists $$entry{'node'}
417 0 35 if ($$entry{'class'} eq 'nothing' and $$entry{'node'}->predecessors == 0)
427 22 13 unless defined $n
432 22 13 if ($n == $$self{'success'})
438 3 32 if ($$entry{'class'} eq 'nothing' or defined $$entry{'min'} and $$entry{'min'} == 0)
450 19 13 if (not defined $next) { }
13 0 elsif ($next != $$self{'success'}) { }
467 3 17 if scalar $$self{'fail'}->incoming == 0
527 0 32 if $$self{'debug'}
534 0 0 if $$self{'debug'} and $branch and defined $$branch{'id'}
538 29 4 unless defined $branch
543 0 4 if $$self{'debug'}
546 1 3 if $entry and $$entry{'class'} eq 'end'
554 0 2 if $$self{'debug'}
571 0 33 if $$self{'debug'}
583 0 0 if $$self{'debug'} and $entry and $$entry{'class'} eq 'branch'
586 4 24 if $$e{'class'} eq 'branch' and $$e{'level'} <= $level
610 0 22 if $$self{'debug'}
617 0 6 if $$self{'debug'}
620 6 0 if ($$entry{'class'} =~ /^(open|branch|plus|star|curly)/) { }
628 0 6 unless ref $entry
646 0 35 if $$self{'debug'}
652 0 58 if $$self{'debug'}
655 0 58 if ($$entry{'class'} =~ /^(open|branch|plus|star|curly)/) { }
663 22 36 unless ref $entry
665 0 36 if $$self{'debug'} and ref $entry
669 0 13 if $$self{'debug'}