Branch Coverage

blib/lib/ExtUtils/ParseXS/Utilities.pm
Criterion Covered Total %
branch 48 50 96.0


line true false branch
133 5 4 unless (@tm_template)
151 9 91 if -e $file
236 5 2 if ($string =~ /^$ExtUtils::ParseXS::Constants::PrototypeRegexp+$/)
269 13 1 ref $tmap ? :
272 2 4 unless -r $typemap
280 64 24 unless -f $typemap_loc
282 0 24 unless -T $typemap_loc
317 95 2 unless $self->{'RetainCplusplusHierarchicalTypes'}
319 39 58 if ($varname)
320 1 38 if ($type =~ / \( \s* \* (?= \s* \) ) /gx) { }
528 2 56 if defined $class
531 4 66 if $self->{'in_out'}{$arg}
566 1 2 if ($statement eq 'if') { }
572 0 2 if $self->{'XSStack'}[-1]{'type'} ne 'if'
573 1 1 if ($self->{'XSStack'}[-1]{'varname'})
579 1 1 if ($statement ne 'endif') { }
613 4 50 if ($ellipsis) { }
49 1 elsif ($min_args == $num_args) { }
614 2 2 $min_args ? :
728 5 55 if (@cpp)
731 4 9 if ($cpp =~ /^\#\s*if/) { }
2 7 elsif (not $cpplevel) { }
3 4 elsif ($cpp =~ /^\#\s*endif/) { }
737 1 1 if $self->{'XSStack'}[-1]{'type'} eq 'if'
744 1 2 if $cpplevel