Branch Coverage

lib/ExtUtils/MM_Any.pm
Criterion Covered Total %
branch 225 346 65.0


line true false branch
111 139 83 grep({$flavors{$_};} @_) ? :
127 0 0 defined &DynaLoader::boot_DynaLoader ? :
152 0 9 if ($^O eq "VMS")
155 0 0 if scalar $syms->getsym(uc $command)
160 0 9 if ('File::Spec'->file_name_is_absolute($command)) { }
168 9 81 unless $dir and -d $dir
169 0 81 $self->os_flavor_is('Win32') ? :
170 0 81 if $abs = $self->maybe_command($abs)
173 0 9 if wantarray
189 0 0 unless $self->os_flavor_is("Unix") or $self->os_flavor_is("Win32") and not $self->os_flavor_is("Win9x")
214 551 35 if defined $maketype2true{$type}
216 1 34 if $make_basename =~ /\b$type\b/i
218 1 33 if $make_basename =~ /\b[gdn]make\b/i
221 33 0 $self->can_redirect_error ? :
224 2 31 if $type eq "gmake" and $minus_v =~ /GNU make/i
226 0 31 if $type eq "bsdmake" and $minus_v =~ /^usage: make \[-BeikNnqrstWwX\]/im
246 0 2 if defined $cached_dep_space
247 2 0 if $self->is_make_type("gmake")
248 0 0 if $self->is_make_type("dmake")
249 0 0 if $self->is_make_type("bsdmake")
268 0 432 if $arg =~ / / and not $self->can_dep_space
307 317 765 unless @args
324 770 2315 if (not length $arg_str) { }
5 2310 elsif (length($arg_str) + length($next_arg_str) > $len_left) { }
348 1062 2 defined $self->{$1} ? :
409 6 422 unless (ref $opts)
413 7 421 unless defined $opts->{'allow_variables'}
418 428 0 if ($file)
419 2 426 $opts->{'append'} ? :
668 0 154 if ($self->{'XSMULTI'})
672 0 0 if $d[0] eq "lib"
734 0 154 if ($attribs{'FILES'})
738 0 0 ref $attribs{'FILES'} ? :
754 0 154 if ($^O eq 'vos') { }
780 0 154 if $attribs{'POSTOP'}
799 98 56 unless @{$self->{'DIR'};}
868 0 97 $self->{'NO_META'} ? :
869 97 0 !$self->{'SIGN'} ? :
956 0 0 if ($self->{'XSMULTI'}) { }
960 0 0 if $parts[0] eq "lib"
1024 0 0 if defined $extra
1094 308 0 "$]" > 5.008 ? :
1100 131 23 unless @man_cmds
1109 711 17 if defined $has_cpan_meta
1132 28 133 if $self->{'NO_META'} or not _has_cpan_meta()
1185 0 258 unless _has_cpan_meta()
1190 8 250 if ($bad_version)
1197 4 254 unless $validator2->is_valid
1204 258 0 unless $validator14->is_valid
1208 523 1 unless $key
1214 0 1 unless $validator14->custom_1($new_key)
1217 1 0 if $validator14->custom_1($new_key)
1227 0 258 if $@ and not $@ =~ /encountered CODE.*, but JSON can only represent references to arrays or hashes/
1232 0 258 unless ($meta and eval {
1240 2 0 if ($self->{'LICENSE'} and $self->{'LICENSE'} ne "unknown" and @{$now_license;} == 1 and $now_license->[0] eq "unknown")
1275 1 14 if (ref $h->{$k} eq 'ARRAY') { }
7 7 elsif (ref $h->{$k} eq 'HASH') { }
1276 1 0 ref $v ? :
1305 2 300 $version =~ /_/ ? :
1318 13 289 defined $self->{'AUTHOR'} ? :
1326 0 302 unless (eval {
1335 302 302 $frag == $meta_add ? :
1343 3 305 if ($v1_add and $key eq 'prereqs') { }
3 302 elsif ($key ne 'meta-spec') { }
1351 302 6 if $key eq "meta-spec"
1369 6 452 $self->{'ARGS'}{'CONFIGURE_REQUIRES'} ? :
1372 6 452 $self->{'ARGS'}{'BUILD_REQUIRES'} ? :
1374 6 452 if $self->{'ARGS'}{'TEST_REQUIRES'}
1376 92 366 if $self->{'ARGS'}{'PREREQ_PM'}
1378 21 437 if $self->{'MIN_PERL_VERSION'}
1386 10 896 if defined $meta->{'meta-spec'} and defined $meta->{'meta-spec'}{'version'}
1394 0 0 if ($self->{'ARGS'}{'CONFIGURE_REQUIRES'}) { }
1401 0 0 if ($self->{'ARGS'}{'BUILD_REQUIRES'}) { }
1408 0 0 if ($self->{'ARGS'}{'TEST_REQUIRES'})
1415 0 0 if defined $self->{'PREREQ_PM'}
1417 0 0 if $self->{'MIN_PERL_VERSION'}
1423 1 322 unless defined $version
1425 4 319 if (ref $version eq 'version') { }
0 319 elsif ($version =~ /^[^v][^.]*\.[^.]+\./) { }
1470 0 31 unless ref $_[0] eq "HASH"
1479 14 17 exists $options->{'key_sort'} ? :
1480 17 14 if ($k_sort) { }
1481 0 17 unless ref $k_sort eq "CODE"
1487 14 17 $options->{'use_header'} ? :
1500 2 104 unless defined $val
1501 18 88 if (ref $val eq 'HASH') { }
7 81 elsif (ref $val eq 'ARRAY') { }
1 80 elsif (ref $val and not blessed($val)) { }
1502 17 1 if (keys %$val) { }
1508 0 17 if (exists $customs->{$key})
1511 0 0 if exists $k_custom{$k}
1522 6 1 if (@$val) { }
1526 1 9 if ref $_
1636 152 4 unless ($mymeta)
1657 28 128 unless _has_cpan_meta()
1661 372 4 unless -e $file
1665 4 0 if $meta
1667 124 4 unless $meta
1672 4 0 if ($meta->{'generated_by'} and $meta->{'generated_by'} =~ /ExtUtils::MakeMaker version ([\d\._]+)/)
1675 0 4 if ($eummv < "6.2501")
1695 28 125 unless _has_cpan_meta()
1718 0 154 if ($self->{'PERL_CORE'})
1723 0 154 if ($self->has_link_code)
1727 0 154 if ($attribs{'FILES'})
1728 0 0 if (ref $attribs{'FILES'}) { }
1752 0 154 if $attribs{'POSTOP'}
1773 98 56 unless @{$self->{'DIR'};}
1859 0 154 if $ENV{'CLEARCASE_ROOT'}
1884 0 1 if ($self->{'ABSTRACT_FROM'} and $self->{'ABSTRACT'})
1890 1 155 if ($self->{'ABSTRACT_FROM'})
1891 0 1 unless $self->{'ABSTRACT'} = $self->parse_abstract($self->{'ABSTRACT_FROM'})
1896 0 156 if ($self->{'ABSTRACT'} and $self->{'ABSTRACT'} =~ /[[:cntrl:]]+/)
1922 100 57 unless ($self->{'INST_LIB'})
1923 0 100 if ($self->{'PERL_CORE'}) { }
1959 0 2 if ($self->{'ARGS'}{'INSTALL_BASE'} and $self->{'ARGS'}{'PREFIX'})
1963 2 154 if ($self->{'ARGS'}{'INSTALL_BASE'}) { }
1989 300 8 unless $ExtUtils::MM_Any::Config{$k}
1995 306 2 unless ($ExtUtils::MM_Any::Config{$k})
1997 6 299 $ExtUtils::MM_Any::Config{'usevendorprefix'} ? :
2003 0 154 unless $ExtUtils::MM_Any::Config{'installsitebin'}
2005 0 154 unless $ExtUtils::MM_Any::Config{'installsitescript'}
2007 154 0 unless ($ExtUtils::MM_Any::Config{'installvendorbin'})
2010 4 150 $ExtUtils::MM_Any::Config{'usevendorprefix'} ? :
2012 154 0 unless ($ExtUtils::MM_Any::Config{'installvendorscript'})
2015 4 150 $ExtUtils::MM_Any::Config{'usevendorprefix'} ? :
2021 4 150 $ExtUtils::MM_Any::Config{'usevendorprefix'} ? :
2025 0 154 unless $sprefix
2030 2 152 if ($self->{'PREFIX'}) { }
2051 0 154 if ($self->{'LIBSTYLE'})
2053 0 0 $self->{'LIBSTYLE'} eq 'lib/perl5' ? :
2060 224 84 unless $ExtUtils::MM_Any::Config{"installman" . $num . "dir"}
2145 0 154 if ($self->{'LIB'})
2149 0 0 if ($var =~ /arch/) { }
2169 0 2772 if $ExtUtils::MM_Any::Verbose >= 2
2173 540 2232 if $self->{$Installvar}
2175 924 1308 if $style
2178 0 2232 if $ExtUtils::MM_Any::Verbose >= 2
2220 12 24 $thing =~ /^man.dir$/ && !$ExtUtils::MM_Any::Config{lc $key} ? :
2275 94 62 if ($self->{'VERSION_FROM'})
2277 0 94 if ($self->{'VERSION'} eq "undef")
2283 107 49 if (defined $self->{'VERSION'}) { }
2284 2 105 unless ($self->{'VERSION'} =~ /^\s*v?[\d_\.]+\s*$/)
2287 0 2 if defined $normal
2395 157 0 unless defined $self->{'NOECHO'}
2437 0 156 if ($libs[0] or $libs[1] or $libs[2])
2445 0 155 if ($self->{'OBJECT'}) { }
0 155 elsif ($self->{'MAGICXS'} || $self->{'XSMULTI'} and @{[] unless $self->{'O_FILES'};}) { }
2446 0 0 if ref $self->{'OBJECT'}
2448 0 0 unless $self->{'O_FILES'}
2454 0 155 unless $self->{'C'}
0 155 if @{[] unless $self->{'C'};}
2458 0 155 -f "$self->{'BASEEXT'}_BS" ? :
2460 155 0 unless $self->{'LDFROM'}
2466 98 57 unless ($self->{'LINKTYPE'})
2469 98 0 $ExtUtils::MM_Any::Config{'usedl'} ? :
0 98 $self->{'SKIPHASH'}{'dynamic'} ? :
2481 1 5 !defined($libs->[0]) ? :
4 7 !ref($libs) ? :
153 11 !defined($libs) ? :
2517 154 4466 unless defined $self->{$tool}
2700 0 154 $attribs{'MAXLEN'} ? :
2739 1 159 if $self->{'PERL_SRC'}
2748 2 157 if ($pthinks ne $cthinks)
2756 1 1 unless $self->{'UNINSTALLED_PERL'}
2808 113 0 -d 't' ? :
2838 0 0 unless -d $dir
2846 0 0 unless /\.t$/
2913 6 1023 if ($path =~ /^README\.pod$/i)
2919 4 1019 if grep /^(?:RCS|CVS|SCCS|\.svn|_darcs)$/, $self->splitdir($dirs), $file
2991 0 0 if $self->{'MIN_PERL_VERSION'}
2992 0 0 if $self->{'BUILD_REQUIRES'}
3021 0 0 if ($self->{'MIN_PERL_VERSION'})
3049 0 0 unless opendir my $dh, $header_dir