Branch Coverage

blib/lib/Inline/Struct.pm
Criterion Covered Total %
branch 30 46 65.2


line true false branch
22 0 15 if $o->{'STRUCT'}{'.parser'}
23 0 15 unless $o->{'STRUCT'}{'.any'}
28 10 5 if $nstructs == 0
37 0 15 unless my $grammar = Inline::Struct::grammar::grammar()
56 10 5 if ($o->{'STRUCT'}{'.all'}) { }
57 0 10 unless $parser->{'data'}{'structs'}
65 0 19 unless (defined $parser->{'data'}{'struct'}{$struct})
66 0 0 if $^W
113 0 19 unless $maxi > 0
205 19 22 $i == 1 ? :
231 19 22 $i == $maxi ? :
236 19 22 $i == $maxi ? :
241 19 22 $i == $maxi ? :
260 4 37 $is_sv ? :
265 4 37 $is_sv ? :
272 4 37 $is_sv ? :
320 0 15 unless -d $o->{'API'}{'build_dir'}
323 0 15 unless open $fh, ">$fname"
348 0 246 unless $tkind
351 0 246 if $@
353 123 123 if $preproc
363 0 0 unless defined $o->{'STRUCT'}{'.parser'}
365 0 0 if (defined $o->{'STRUCT'}{'.bound'}) { }