Branch Coverage

blib/lib/Module/XSOrPP.pm
Criterion Covered Total %
branch 28 60 46.6


line true false branch
39 0 13 unless $mod
41 0 13 if ($mod =~ m[/])
52 3 10 if ($mod ~~ \@XS_OR_PP_MODULES)
53 0 3 if $debug
57 3 7 if ($mod ~~ \@XS_MODULES)
58 0 3 if $debug
62 0 7 if ($mod ~~ \@PP_MODULES)
63 0 0 if $debug
69 7 0 unless $path
71 0 0 unless (open $fh, '<', $path)
72 0 0 if $warn
77 0 0 if ($line =~ /\.(bs|so|[Dd][Ll][Ll])\z/)
78 0 0 if $debug
82 0 0 if $debug
88 1 6 unless $path
91 0 6 unless (open $fh, '<', $path)
92 0 0 if $warn
96 3 3 if ($content =~ /^\s*(use|require) \s+ (DynaLoader|XSLoader)\b/mx)
97 0 3 if $debug
101 0 3 if $debug
107 1 0 unless ($mod =~ /\.pm\z/)
109 0 1 if ($mod =~ m[/XS\.pm\z|/[^/]+_(xs|XS)\.pm\z]) { }
0 1 elsif ($mod =~ m[/PP\.pm\z|/[^/]+_(pp|PP)\.pm\z]) { }
110 0 0 if $debug
113 0 0 if $debug
118 0 1 if $warn
125 1 4 unless defined $res
126 2 2 unless $res eq 'xs'
132 0 4 unless defined $res
133 3 1 unless $res eq 'pp'