Branch Coverage

blib/lib/Parse/Eyapp/Output.pm
Criterion Covered Total %
branch 43 82 52.4


line true false branch
44 36 478 unless exists $usedSymbols{$token}
48 0 54 if ($$self{'GRAMMAR'}{'STRICT'} and %$termDef)
50 0 0 if (@undefined)
65 0 54 if (defined $w)
67 0 0 if ($$self{'GRAMMAR'}{'WHITES'}[2] eq 'CODE') { }
76 0 54 defined $$self{'GRAMMAR'}{'INCREMENTAL'} ? :
100 42 12 if (@term)
111 0 76 if ($termdef{$t}[2] eq 'REGEXP') { }
0 76 elsif ($termdef{$t}[2] eq 'CONTEXTUAL_REGEXP') { }
0 76 elsif ($termdef{$t}[2] eq 'CONTEXTUAL_REGEXP_MATCH') { }
0 76 elsif ($termdef{$t}[2] eq 'CONTEXTUAL_REGEXP_NOMATCH') { }
76 0 elsif ($termdef{$t}[2] eq 'LITERAL') { }
0 0 elsif ($termdef{$t}[2] eq 'CODE') { }
188 42 12 if (@term) { }
249 0 0 unless open DRV, $file
293 0 54 if (defined $modulino) { }
305 0 54 $lexerisdefined ? :
313 0 54 unless defined $package
326 54 0 unless $tail =~ /\n\n=cut\n/
344 0 54 if ($self->Option('standalone')) { }
483 1 56 if @_ % 2
485 1 55 if (defined($a = first(sub { not exists $_new_grammar{$_}; } , keys %arg)))
489 0 55 unless my $grammar = $arg{'input'}
491 1 54 unless my $name = $arg{'classname'}
495 40 14 if defined $arg{'firstline'} and $arg{'firstline'} =~ /\d+/
498 53 1 unless defined $linenumbers
500 0 54 unless my $p = 'Parse::Eyapp'->new('input', $grammar, 'inputfile', $filename, 'firstline', $line, 'linenumbers', $linenumbers)
508 0 54 unless my $text = $p->Output('classname', $name)
511 0 54 unless $linenumbers =~ /[01]/
513 0 54 if (defined $outputfile)
517 0 0 unless open my $OUT, ">$outfile"
525 0 54 unless 'Parse::Eyapp::Driver'->can('YYParse')
0 54 unless 'Parse::Eyapp::Node'->can('hnew')
0 19 if ref $class
0 19 unless 'Calc'->isa('Parse::Eyapp::Driver')
0 0 defined pos $_ ? :
0 0 defined $_ ? :
2 5 unless $in
5 0 if $in =~ s/^([AaBbCc])//
0 0 if $in =~ s/^(.)//s
526 1 53 if $@