Branch Coverage

blib/lib/Inline/Module.pm
Criterion Covered Total %
branch 4 86 4.6


line true false branch
14 0 1 $ENV{'PERL_INLINE_MODULE_DEBUG'} ? :
30 0 1 if ($program eq 'Makefile.PL' and not -e 'INLINE.h') { }
0 1 elsif ($program eq 'Build.PL') { }
41 1 0 unless @_
44 0 0 if $cmd eq 'stub'
46 0 0 if $cmd eq 'makestub'
48 0 0 if $cmd eq 'distdir'
50 0 0 if $cmd eq 'fixblib'
54 0 0 if $cmd eq 'autostub'
63 0 0 if ($api_version ne $API_VERSION)
82 0 0 unless my $first = $INC[0]
83 0 0 if (not $first =~ m(^(\.[/\\])?inc[/\\]?$))
99 0 0 unless defined $lang
101 0 0 unless -d $inline_build_path
104 0 0 $lang eq 'C' ? :
124 0 0 unless my $meta = $args{'inline'}
126 0 0 unless $$meta{'module'}
136 0 0 if ($$meta{'makestub'} and not -e 'inc' and not -e 'INLINE.h')
179 0 0 if ($arg =~ /::/) { }
211 0 0 unless -d 'blib'
215 0 0 unless -f $_
216 0 0 if (m[^($inline_build_path/lib/auto/.*)\.$ext$])
218 0 0 unless $blib_ext =~ s[^$inline_build_path/lib][blib/arch]
220 0 0 unless $blib_ext_dir =~ s[(.*)/.*][$1]
234 0 0 unless defined $$meta{'module'}
236 0 0 unless ref $$meta{'module'}
238 0 0 unless ref $$meta{'stub'}
240 0 0 unless ref $$meta{'ilsm'}
241 0 0 unless defined $$meta{'bundle'}
247 0 0 unless $$meta{'bundle'}
255 0 0 if (caller eq 'Module::Build::InlineModule')
258 0 0 if (grep /:C$/, @$ilsm)
262 0 0 if (grep /:CPP$/, @$ilsm)
285 0 0 unless -e "lib/$module.pm"
290 0 0 $module eq 'Inline::CPP::Config' ? :
310 0 0 if ($path)
318 0 0 unless eval "require $module; 1"
375 0 0 unless open IN, '<', $filepath
397 0 0 if $onchange and -e $filepath and $class->read_file($filepath) eq $code
402 0 0 unless open OUT, '>', $filepath
415 0 0 if (-w $manifest)
416 0 0 unless open my $out, '>>', $manifest
437 0 0 if -f $_