Branch Coverage

blib/lib/ExtUtils/ParseXS/Utilities.pm
Criterion Covered Total %
branch 49 54 90.7


line true false branch
134 5 4 unless (@tm_template)
152 9 91 if -e $file
237 5 2 if ($string =~ /^$ExtUtils::ParseXS::Constants::PrototypeRegexp+$/)
270 13 1 ref $tmap ? :
273 2 4 unless -r $typemap
281 64 24 unless -f $typemap_loc
283 0 24 unless -T $typemap_loc
318 103 2 unless $self->{'RetainCplusplusHierarchicalTypes'}
320 41 64 if ($varname)
321 1 40 if ($type =~ / \( \s* \* (?= \s* \) ) /gx) { }
529 2 58 if defined $class
532 6 70 if $self->{'in_out'}{$arg}
567 1 2 if ($statement eq 'if') { }
573 0 2 if $self->{'XSStack'}[-1]{'type'} ne "if"
574 1 1 if ($self->{'XSStack'}[-1]{'varname'})
580 1 1 if ($statement ne 'endif') { }
614 4 52 if ($ellipsis) { }
51 1 elsif ($min_args == $num_args) { }
615 2 2 $min_args ? :
733 0 8 if ($hint)
776 0 0 if ($self->{'die_on_error'}) { }
801 5 57 if (@cpp)
804 4 9 if ($cpp =~ /^\#\s*if/) { }
2 7 elsif (not $cpplevel) { }
3 4 elsif ($cpp =~ /^\#\s*endif/) { }
810 1 1 if $self->{'XSStack'}[-1]{'type'} eq "if"
817 1 2 if $cpplevel