Branch Coverage

blib/lib/Module/Build/Compat.pm
Criterion Covered Total %
branch 42 100 42.0


line true false branch
75 8 25 if $k eq "perl"
78 0 25 unless (defined $v_obj)
83 1 24 if ($v_obj->is_qv)
95 8 8 $v1 > $v2 ? :
104 0 98 unless $type =~ /^(small|passthrough|traditional)$/
107 42 56 if ($type eq "passthrough")
119 0 98 if ($args{'fh'}) { }
125 0 98 unless open $fh, ">", "$args{'file'}"
133 27 71 if (my $minimum_perl = $requires->{'perl'})
141 22 76 if (ref $build ne "Module::Build")
144 10 12 if ('File::Spec'->file_name_is_absolute($subclass_dir)) { }
147 10 0 if ($build->dir_contains($base_dir, $subclass_dir))
160 34 64 if ($type eq 'small') { }
42 22 elsif ($type eq 'passthrough') { }
22 0 elsif ($type eq 'traditional') { }
209 0 22 if (eval "use Tie::IxHash 1.2; 1")
214 22 0 $build->module_name ? :
218 22 0 $build->dist_version_from ? :
230 0 22 $build->installdirs eq 'core' ? :
232 22 0 if $build->script_files
236 2 20 if ($build->recursive_test_files)
275 0 0 if $arg eq ""
277 0 0 $arg =~ /^(\w+)=(.+)/ ? :
281 0 0 if $val =~ /^~/
283 0 0 if (exists $makefile_to_build{$key}) { }
0 0 elsif (exists $Module::Build::Compat::Config{lc $key}) { }
285 0 0 ref $trans ? :
314 0 0 unless exists $ENV{$macro} and length $ENV{$macro}
316 0 0 ref $trans ? :
319 0 0 if ($k eq 'config') { }
320 0 0 if ($v =~ /^([^=]+)=(.*)$/) { }
332 0 0 if %config
339 0 0 $in{'args'} ? :
341 0 0 unless "Module::Build"->run_perl_script($in{'script'}, [], \@args)
346 7 0 unless (exists $args{'build_class'})
355 0 7 if $self->_is_vms_mms
357 0 7 $self->_is_vms_mms ? :
0 7 $class->is_windowsish ? :
361 0 7 $class->is_vmsish ? :
365 7 0 unless $class->is_vmsish
370 0 7 $^O eq 'MSWin32' && $Module::Build::Compat::Config{'make'} =~ /gmake/ ? :
0 7 $^O eq 'os2' ? :
389 14 252 if $action =~ /^(all|distclean|realclean|force_do_it)$/
396 0 7 if ($self->_is_vms_mms) { }
413 0 0 unless open my $fh, "<", "$file"
420 0 0 if $_ eq "perl"
423 0 0 unless @prereq
431 0 0 unless (exists $in{'build_class'})
436 0 0 $pack->_is_vms_mms ? :
438 0 0 unless open MAKE, "> $in{'makefile'}"