Branch Coverage

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


line true false branch
38 0 13 unless $mod
40 0 13 if ($mod =~ m[/])
51 3 10 if ($mod ~~ \@XS_OR_PP_MODULES)
52 0 3 if $debug
56 3 7 if ($mod ~~ \@XS_MODULES)
57 0 3 if $debug
61 0 7 if ($mod ~~ \@PP_MODULES)
62 0 0 if $debug
68 7 0 unless $path
70 0 0 unless (open $fh, '<', $path)
71 0 0 if $warn
76 0 0 if ($line =~ /\.(bs|so|[Dd][Ll][Ll])\z/)
77 0 0 if $debug
81 0 0 if $debug
87 1 6 unless $path
90 0 6 unless (open $fh, '<', $path)
91 0 0 if $warn
95 3 3 if ($content =~ /^\s*(use|require) \s+ (DynaLoader|XSLoader)\b/mx)
96 0 3 if $debug
100 0 3 if $debug
106 1 0 unless ($mod =~ /\.pm\z/)
108 0 1 if ($mod =~ m[/XS\.pm\z|/[^/]+_(xs|XS)\.pm\z]) { }
0 1 elsif ($mod =~ m[/PP\.pm\z|/[^/]+_(pp|PP)\.pm\z]) { }
109 0 0 if $debug
112 0 0 if $debug
117 0 1 if $warn
124 1 4 unless defined $res
125 2 2 unless $res eq 'xs'
131 0 4 unless defined $res
132 3 1 unless $res eq 'pp'