Branch Coverage

lib/Parser/LR.pm
Criterion Covered Total %
branch 43 58 74.1


line true false branch
292 46 63 if $L > @stack
301 264 103 if (my $next = $dfa->{$state}->transitions->{$symbol})
308 97 11 if $final
317 99 169 if $L > @stack
324 631 606 if (my $next = $dfa->{$state}->transitions->{$symbol})
338 98 0 if ($L <= @$stack) { }
442 4 43 if (not @stack) { }
448 2 41 if (&partialMatch($grammar, @stack, $terminal) >= 2) { }
453 19 22 if ($grammar->startTerminals->{$terminal}) { }
460 48 2 if (my $rule = &longestMatchingRule($grammar, @stack))
465 20 28 if (&partialMatch($grammar, @stack, $terminal) >= 2) { }
484 8 4 if (my $rule = &longestMatchingRule($grammar, @stack))
493 0 4 unless @tree
494 0 4 if @tree > 1
507 1 0 if -e $logFile
513 71 47 $symbol =~ /\A[0-9a-z]+\Z/i ? :
536 1 0 if -e $logFile
548 84 61 if (ref $stack) { }
549 84 0 if (defined(my($r) = @$stack))
563 0 8 unless $tree
569 7 1 if -e $logFile
583 27 25 if (ref $stack) { }
584 27 0 if (defined(my($r) = @$stack))
604 0 2 unless $tree
610 2 0 if -e $logFile
623 0 0 if -e $logFile
1828 0 1 if eval "eof(${p}::DATA)"
1830 0 1 if $@
1832 0 1 if $@