Branch Coverage

blib/lib/XS/JIT/Header/Parser.pm
Criterion Covered Total %
branch 38 58 65.5


line true false branch
16 25 25 if ($? == 0)
17 0 25 $cmd eq 'gcc' ? :
47 0 14 unless defined $header_path
50 14 0 if (-f $header_path)
51 0 14 unless open my $fh, "<", $header_path
105 0 25 if ($? != 0)
108 0 0 if $self->{'_raw_code'}
119 0 25 unless $code
160 19 56 if $name =~ /^_/
161 0 56 if $return_type =~ /^#/
171 0 56 $params =~ /\.\.\./ ? :
183 0 56 if not defined $params or $params =~ /^\s*$/
184 26 30 if $params =~ /^\s*void\s*$/
195 0 59 if $part eq "..."
198 58 1 if ($part =~ /^(.+?)\s+(\w+)$/) { }
1 0 elsif ($part =~ /^(.+?)\s*(\*+)\s*(\w+)$/) { }
0 0 elsif ($part =~ /^(.+?)$/) { }
221 0 25 unless $code
228 0 932 if $value =~ /^\\/
229 340 592 if $name =~ /^_/
233 256 336 if (defined $numeric) { }
263 1 637 if ($value =~ /^0x([0-9a-fA-F]+)(?:U?L{0,2})?$/)
268 0 637 if ($value =~ /^0([0-7]+)(?:U?L{0,2})?$/)
273 80 557 if ($value =~ /^(-?\d+)(?:U?L{0,2})?$/)
278 181 376 if ($value =~ /^(-?\d+\.?\d*(?:[eE][+-]?\d+)?)[fFlL]?\s*$/)
283 0 376 if ($value =~ /^\(?\s*(\d+)\s*<<\s*(\d+)\s*\)?$/)
295 0 25 unless $code
308 46 9 if (defined $value)
310 6 40 defined $num ? :