Branch Coverage

blib/lib/XS/JIT/Header/Parser.pm
Criterion Covered Total %
branch 37 56 66.0


line true false branch
17 25 25 if ($? == 0)
48 0 14 unless defined $header_path
51 14 0 if (-f $header_path)
52 0 14 unless open my $fh, "<", $header_path
106 0 25 if ($? != 0)
109 0 0 if $self->{'_raw_code'}
120 0 25 unless $code
161 19 56 if $name =~ /^_/
162 0 56 if $return_type =~ /^#/
172 0 56 $params =~ /\.\.\./ ? :
184 0 56 if not defined $params or $params =~ /^\s*$/
185 26 30 if $params =~ /^\s*void\s*$/
196 0 59 if $part eq "..."
199 58 1 if ($part =~ /^(.+?)\s+(\w+)$/) { }
1 0 elsif ($part =~ /^(.+?)\s*(\*+)\s*(\w+)$/) { }
0 0 elsif ($part =~ /^(.+?)$/) { }
222 0 25 unless $code
229 0 932 if $value =~ /^\\/
230 340 592 if $name =~ /^_/
234 256 336 if (defined $numeric) { }
264 1 637 if ($value =~ /^0x([0-9a-fA-F]+)(?:U?L{0,2})?$/)
269 0 637 if ($value =~ /^0([0-7]+)(?:U?L{0,2})?$/)
274 80 557 if ($value =~ /^(-?\d+)(?:U?L{0,2})?$/)
279 181 376 if ($value =~ /^(-?\d+\.?\d*(?:[eE][+-]?\d+)?)[fFlL]?\s*$/)
284 0 376 if ($value =~ /^\(?\s*(\d+)\s*<<\s*(\d+)\s*\)?$/)
296 0 25 unless $code
309 46 9 if (defined $value)
311 6 40 defined $num ? :