Branch Coverage

blib/lib/Parse/Yapp/Grammar.pm
Criterion Covered Total %
branch 40 62 64.5


line true false branch
29 0 10 unless defined $self->Option('input')
38 0 10 if ref $class
60 0 0 if (@$rhs) { }
61 0 0 $_ eq "\000" ? :
80 0 0 if (exists $grammar->{'UUTERM'})
88 0 0 if (exists $grammar->{'UUNTERM'})
96 0 0 if (exists $grammar->{'UURULES'})
133 9 0 unless defined $inputfile
145 32 31 if ($code) { }
146 32 0 $linenums ? :
174 1 8 unless $self->{'GRAMMAR'}{'HEAD'}[0]
177 8 0 unless defined $inputfile
181 8 0 if $linenums
194 0 9 unless $self->{'GRAMMAR'}{'TAIL'}[0]
197 9 0 unless defined $inputfile
200 9 0 if $linenums
225 709 375 if exists $nterm->{$sym}
239 448 2122 if exists $nterm->{$sym} and not exists $ufnterm->{$sym}
244 150 559 unless (exists $$ufnterm{$rules->[$_][0]})
269 784 1245 if (exists $term->{$sym})
275 985 260 if not exists $ufnterm->{$sym} or exists $reachable->{$sym}
296 89 799 if exists $nullable->{$lhs}
300 511 774 if exists $term->{$_}
313 8 559 if exists $nullable->{$lhs}
317 553 5 unless exists $nullable->{$_}
338 0 10 unless exists $$ufnterm{$values->{'START'}}
346 154 3 if (exists $reachable->{$sym} or exists $values->{'PREC'}{$sym})
348 74 80 defined $term->{$sym}[0] ? :
357 260 0 if (exists $reachable->{$sym})
359 41 219 if exists $values->{'NULL'}{$sym}
369 888 0 if (vec $ufrules, $ruleno, 1 and exists $grammar->{'NTERM'}{$rules->[$ruleno][0]})