Branch Coverage

blib/lib/Validate/SPF/Parser.pm
Criterion Covered Total %
branch 40 72 55.5


line true false branch
77 0 10 if exists $$self{'VERSION'} and $$self{'VERSION'} < $Parse::Yapp::Driver::COMPATIBLE
83 0 10 if ref $class
95 0 117 if ($$self{'DEBUG'}) { }
98 0 0 if $@
109 9 1374 unless exists $$self{'USER'}
161 0 0 if $index < 0 and -$index <= @{$$self{'STACK'};}
171 0 0 if @_
179 0 16 if @_
208 0 264 unless exists $$checklist{$prm}
210 0 264 unless ref $value eq $$checklist{$prm}
216 0 351 unless exists $$outhash{$_}
229 0 0 if exists ${'Parse::Yapp::Driver::';}{'_DBParse'}
234 0 0 unless open DRV, "<$fname"
237 0 0 if (/^\s*sub\s+_Parse\s*{\s*$/ .. /^\s*}\s*#\s*_Parse\s*$/)
293 597 284 if (exists $$actions{'ACTIONS'}) { }
296 489 108 unless (defined $$token)
302 129 8 exists $$actions{'DEFAULT'} ? :
460 137 exists $$actions{'ACTIONS'}{$$token} ? :
315 873 8 if (defined $act)
318 460 413 if ($act > 0)
324 0 460 if ($$errstatus)
339 400 60 if $$token ne ''
352 60 353 unless $act
358 0 413 if (unpack('A1', $lhs) eq '@')
359 0 0 unless $lhs =~ /^\@[0-9]+\-([0-9]+)$/
366 413 0 $$dotpos ? :
369 181 0 @sempar ? :
232 181 $code ? :
375 60 353 if ($$check eq 'ACCEPT')
384 0 353 if ($$check eq 'ABORT')
397 304 49 unless ($$check eq 'ERROR')
425 57 0 unless ($$errstatus)
429 0 57 unless $$errstatus
443 0 57 if ($$errstatus == 3)
445 0 0 if ($$token eq '')
471 57 0 unless (@$stack)