Branch Coverage

blib/lib/Math/Calc/Units/Grammar.pm
Criterion Covered Total %
branch 30 72 41.6


line true false branch
67 0 109 if exists $$self{'VERSION'} and $$self{'VERSION'} < $Parse::Yapp::Driver::COMPATIBLE
73 0 109 if ref $class
85 0 109 if ($$self{'DEBUG'}) { }
88 0 0 if $@
99 0 0 unless exists $$self{'USER'}
151 0 0 if $index < 0 and -$index <= @{$$self{'STACK'};}
161 0 0 if @_
169 0 0 if @_
198 0 654 unless exists $$checklist{$prm}
200 0 654 unless ref $value eq $$checklist{$prm}
206 0 327 unless exists $$outhash{$_}
219 0 0 if exists ${'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 596 554 if (exists $$actions{'ACTIONS'}) { }
286 442 154 unless (defined $$token)
292 157 0 exists $$actions{'DEFAULT'} ? :
439 157 exists $$actions{'ACTIONS'}{$$token} ? :
305 1150 0 if (defined $act)
308 439 711 if ($act > 0)
314 0 439 if ($$errstatus)
329 334 105 if $$token ne ''
342 105 606 unless $act
348 0 711 if (unpack('A1', $lhs) eq '@')
349 0 0 unless $lhs =~ /^\@[0-9]+\-([0-9]+)$/
356 711 0 $$dotpos ? :
359 210 0 @sempar ? :
501 210 $code ? :
365 105 602 if ($$check eq 'ACCEPT')
374 0 602 if ($$check eq 'ABORT')
387 602 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)