Branch Coverage

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


line true false branch
77 0 13 if exists $$self{'VERSION'} and $$self{'VERSION'} < $Parse::Yapp::Driver::COMPATIBLE
83 0 13 if ref $class
95 0 139 if ($$self{'DEBUG'}) { }
98 0 0 if $@
109 12 1631 unless exists $$self{'USER'}
161 0 0 if $index < 0 and -$index <= @{$$self{'STACK'};}
171 0 0 if @_
179 0 22 if @_
208 0 317 unless exists $$checklist{$prm}
210 0 317 unless ref $value eq $$checklist{$prm}
216 0 417 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 688 312 if (exists $$actions{'ACTIONS'}) { }
296 573 115 unless (defined $$token)
302 146 9 exists $$actions{'DEFAULT'} ? :
533 155 exists $$actions{'ACTIONS'}{$$token} ? :
315 991 9 if (defined $act)
318 533 458 if ($act > 0)
324 0 533 if ($$errstatus)
339 467 66 if $$token ne ''
352 66 392 unless $act
358 0 458 if (unpack('A1', $lhs) eq '@')
359 0 0 unless $lhs =~ /^\@[0-9]+\-([0-9]+)$/
366 458 0 $$dotpos ? :
369 193 0 @sempar ? :
265 193 $code ? :
375 66 392 if ($$check eq 'ACCEPT')
384 0 392 if ($$check eq 'ABORT')
397 328 64 unless ($$check eq 'ERROR')
425 73 0 unless ($$errstatus)
429 0 73 unless $$errstatus
443 0 73 if ($$errstatus == 3)
445 0 0 if ($$token eq '')
471 73 0 unless (@$stack)