Branch Coverage

blib/lib/Text/Spintax/grammar.pm
Criterion Covered Total %
branch 31 72 43.0


line true false branch
67 0 1 if exists $$self{'VERSION'} and $$self{'VERSION'} < $Text::Spintax::Parse::Yapp::Driver::COMPATIBLE
73 0 1 if ref $class
85 0 1 if ($$self{'DEBUG'}) { }
88 0 0 if $@
99 1 41 unless exists $$self{'USER'}
151 0 0 if $index < 0 and -$index <= @{$$self{'STACK'};}
161 0 0 if @_
169 0 0 if @_
198 0 5 unless exists $$checklist{$prm}
200 0 5 unless ref $value eq $$checklist{$prm}
206 0 3 unless exists $$outhash{$_}
219 0 0 if exists ${'Text::Spintax::Parse::Yapp::Driver::';}{'_DBParse'}
224 0 0 unless open DRV, "<$fname"
227 0 0 if (/^\s*sub\s+_Parse\s*{\s*$/ .. /^\s*}\s*#\s*_Parse\s*$/)
283 8 25 if (exists $$actions{'ACTIONS'}) { }
286 8 0 unless (defined $$token)
292 0 0 exists $$actions{'DEFAULT'} ? :
8 0 exists $$actions{'ACTIONS'}{$$token} ? :
305 33 0 if (defined $act)
308 8 25 if ($act > 0)
314 0 8 if ($$errstatus)
329 7 1 if $$token ne ''
342 1 24 unless $act
348 0 25 if (unpack('A1', $lhs) eq '@')
349 0 0 unless $lhs =~ /^\@[0-9]+\-([0-9]+)$/
356 21 4 $$dotpos ? :
359 10 4 @sempar ? :
11 14 $code ? :
365 1 24 if ($$check eq 'ACCEPT')
374 0 24 if ($$check eq 'ABORT')
387 24 0 unless ($$check eq 'ERROR')
415 0 0 unless ($$errstatus)
419 0 0 unless $$errstatus
433 0 0 if ($$errstatus == 3)
435 0 0 if ($$token eq '')
461 0 0 unless (@$stack)