Branch Coverage

blib/lib/Parse/Eyapp/Grammar.pm
Criterion Covered Total %
branch 72 132 54.5


line true false branch
30 0 54 unless defined $self->Option('input')
49 0 54 if ref $class
55 0 54 if ($ns and reftype $ns eq 'ARRAY')
57 0 0 if $@
82 0 0 if (@$rhs) { }
83 0 0 $_ eq "\000" ? :
113 0 0 unless (@rhs)
119 0 0 if ($self->is_token($_))
122 0 0 unless ($name)
123 0 0 if /^\w+$/
125 0 0 if $name
129 0 0 unless ($rhs)
131 0 0 if /^\w+$/
156 0 0 unless (@rhs)
162 0 0 if ($self->is_token($_)) { }
170 0 0 unless ($name)
171 0 0 if /^\w+$/
173 0 0 if $name
176 0 0 if exists $$self{'GRAMMAR'}{'CONFLICTHANDLERS'}{$_}
177 0 0 if /^\w*$/
191 556 826 unless (defined $name)
192 108 448 if ($lhs =~ /\$start/) { }
16 432 elsif ($lhs =~ /\@(\d+)-(\d+)/) { }
16 416 elsif ($lhs =~ /PAREN-(\d+)/) { }
16 400 elsif ($lhs =~ /STAR-(\d+)/) { }
24 376 elsif ($lhs =~ /PLUS-(\d+)/) { }
0 376 elsif ($lhs =~ /OPTIONAL-(\d+)/) { }
213 376 1006 if (not $name) { }
0 1006 elsif ($name =~ /^:/) { }
239 334 357 unless defined $bypass
241 0 691 if defined $$name[0] and $$name[0] =~ /(:.*)/
250 465 964 $_ =~ /^'/ ? :
54 1429 $_ eq "\000" ? :
269 54 516 $_ eq "\000" ? :
298 0 0 defined $$ce{'states'} ? :
303 0 0 unless defined $t{$sn}
348 0 54 if defined $$self{'GRAMMAR'}{'INCREMENTAL'}
373 0 4 if $self->Option('start')
379 0 4 if (exists $$grammar{'UUTERM'})
387 0 4 if (exists $$grammar{'UUNTERM'})
395 0 4 if (exists $$grammar{'UURULES'})
432 0 54 unless defined $inputfile
448 635 56 if ($code) { }
449 630 5 $linenums ? :
477 20 34 unless $$self{'GRAMMAR'}{'HEAD'}[0]
480 0 34 unless defined $inputfile
484 34 0 if $linenums
497 0 54 unless reftype($$self{'GRAMMAR'}{'TAIL'}) eq 'ARRAY' and $$self{'GRAMMAR'}{'TAIL'}[0]
501 0 54 unless defined $inputfile
504 53 1 if $linenums
529 482 321 if exists $$nterm{$sym}
542 150 1282 if exists $$nterm{$sym} and not exists $$ufnterm{$sym}
548 109 373 unless (exists $$ufnterm{$$rules[$_][0]})
573 604 879 if (exists $$term{$sym})
578 656 223 if not exists $$ufnterm{$sym} or exists $$reachable{$sym}
600 32 659 if exists $$nullable{$lhs}
604 531 445 if exists $$term{$_}
617 12 172 if exists $$nullable{$lhs}
621 160 5 unless exists $$nullable{$_}
662 0 54 unless exists $$ufnterm{$$values{'START'}}
671 516 0 if (exists $$reachable{$sym} or exists $$values{'PREC'}{$sym})
672 254 262 defined $$term{$sym}[0] ? :
682 223 0 if (exists $$reachable{$sym})
683 16 207 if exists $$values{'NULL'}{$sym}
694 691 0 if (vec $ufrules, $ruleno, 1 and exists $$grammar{'NTERM'}{$$rules[$ruleno][0]})
711 0 0 if @_