Branch Coverage

blib/lib/Module/Install/XSUtil.pm
Criterion Covered Total %
branch 1 142 0.7


line true false branch
17 0 1 $ENV{'MI_VERBOSE'} ? :
46 0 0 unless ($$self{'xsu_initialized'})
49 0 0 unless ($self->cc_available)
60 0 0 if $^O eq 'cygwin'
62 0 0 if ($self->_xs_debugging)
64 0 0 if (_is_msvc()) { }
90 0 0 defined $cc_available ? :
100 0 0 if defined $want_xs
104 0 0 unless defined $default
109 0 0 if ($k eq 'PUREPERL_ONLY' and defined $v) { }
0 0 elsif ($arg eq '--pp') { }
0 0 elsif ($arg eq '--xs') { }
120 0 0 if ($ENV{'PERL_MM_OPT'})
122 0 0 if (defined $v)
133 0 0 if $$self{'_ppport_ok'}++
153 0 0 if ($e)
157 0 0 if (-e $filename)
171 0 0 unless open my $fh, '>', $file
173 0 0 unless close $fh
174 0 0 if (defined $opt)
175 0 0 if ($opt eq '-clean') { }
197 0 0 if (_is_gcc()) { }
0 0 elsif (_is_msvc()) { }
201 0 0 if ($gccversion >= 4) { }
203 0 0 unless ($UseC99 or $UseCplusplus)
209 0 0 if ($gccversion >= 4.1 and not $UseCplusplus)
230 0 0 unless $self->cc_available
254 0 0 unless unlink $objname
261 0 0 unless ($self->c99_available)
272 0 0 unless ($self->cc_available)
287 0 0 unless (-d $dir)
297 0 0 if ($$mm{'INC'}) { }
310 0 0 ref $_ eq 'ARRAY' ? :
312 0 0 if (defined $dir) { }
313 0 0 $dir =~ /^-/ ? :
318 0 0 $name =~ /^-/ ? :
331 0 0 unless @libs
337 0 0 if ($$mm{'LIBS'}) { }
349 0 0 unless ($$self{'xsu_loaded_checklib'})
353 0 0 unless ($@)
359 0 0 unless ($loaded_lib)
390 0 0 if (exists $$mm{'DEFINE'}) { }
402 0 0 unless @_
419 0 0 unless @dirs
423 0 0 if (my($incdir) = $File::Find::name =~ /$rx_header/) { }
0 0 elsif ($File::Find::name =~ /$rx_lib/) { }
0 0 elsif ($File::Find::name =~ /$rx_dll/) { }
438 0 0 if ($n_inc != scalar @inc)
458 0 0 unless @dirs
469 0 0 if (/ \. (?: xs | c (?: c | pp | xx )? ) \z/imsx)
474 0 0 $UseCplusplus ? :
477 0 0 if ($c =~ s/ \.xs \z/$xs_to/msx) { }
486 0 0 unless grep {$_ eq $c;} @{$C_ref;}
511 0 0 unless / \.h(?:pp)? \z/msx
526 0 0 if (@_ == 0) { }
0 0 elsif (@_ == 1 and ref $_[0] eq 'HASH') { }
527 0 0 unless $h_files = $$self{'xsu_header_map'}
545 0 0 unless ($path and -e $path)
554 0 0 if (@funcs)
559 0 0 if (@not_found)
573 0 0 unless defined $home_directory
582 0 0 if $$mm{'INC'}
585 0 0 if $$mm{'DEFINE'}
587 0 0 _is_msvc() ? :
600 0 0 unless (defined $contents)
631 0 0 if $decl =~ /\b typedef \b/msx
632 0 0 if $name =~ /^_/msx
789 0 0 unless $cccmd
791 0 0 if (Module::Install::XSUtil::_is_msvc()) { }
804 0 0 if $UseCplusplus
811 0 0 if $UseCplusplus