Branch Coverage

blib/lib/ExtUtils/CBuilder/Base.pm
Criterion Covered Total %
branch 72 92 78.2


line true false branch
33 0 20 unless $self->{'properties'}{'perl'} = $class->find_perl_interpreter
37 24517 3 unless exists $self->{'config'}{$k}
39 1 19 if defined $ENV{'CC'}
41 1 19 if defined $ENV{'CFLAGS'}
42 0 20 if defined $ENV{'CXX'}
43 0 20 if defined $ENV{'CXXFLAGS'}
44 0 20 if defined $ENV{'LD'}
46 1 19 if defined $ENV{'LDFLAGS'}
48 20 0 unless (exists $self->{'config'}{'cxx'})
53 19 1 if $self->{'config'}{'cc'} =~ /^\Q$ccbase$ccsfx\E$/
58 0 17 if (can_run($cxx1))
64 17 0 if (can_run($cxx2))
69 0 0 if (can_run($cxx))
74 3 17 unless (exists $self->{'config'}{'cxx'})
78 3 0 if defined $cflags
89 0 22 unless 'File::Spec'->file_name_is_absolute($perl = $^X) or -f ($perl = $Config::Config{'perlpath'})
148 1 12 unless defined $args{'source'}
154 0 12 $args{'object_file'} ? :
159 1 11 exists $args{'include_dirs'} && ref $args{'include_dirs'} ne 'ARRAY' ? :
161 10 2 unless $include_dirs_ref
165 12 0 unless $args{'defines'}
170 4 8 $args{'C++'} ? :
182 4 8 $args{'C++'} ? :
185 1 11 unless $self->do_system(@cc, @flags, $args{'source'})
192 4 5 $is_cplusplus ? :
193 4 5 $is_cplusplus ? :
194 2 7 if defined $self->{$have_compiler_flag}
204 3 4 if ($is_cplusplus) { }
219 2 5 $@ ? :
238 10 0 if (defined $args{'module_name'} and length $args{'module_name'})
241 0 10 if (defined &DynaLoader::mod2fname)
280 1 1 unless $args->{'dl_file'}
290 1 1 defined $args->{'dl_version'} ? :
311 9 0 unless ref $objects
317 0 9 if $args{'lddl'} and $self->need_prelink
327 8 1 $args{'lddl'} ? :
332 1 8 unless $self->do_system(@shrp, @ld, @output, @$objects, @linker_flags)
335 8 0 wantarray ? :
341 6 13 unless $self->{'quiet'}
348 26 74 unless defined $string
349 1 73 if UNIVERSAL::isa($string, 'ARRAY')
351 9 64 unless length $string
356 0 64 if $^O eq 'MSWin32'
366 13 4 unless $ENV{'PERL_CORE'}
373 1 2 if (-f 'File::Spec'->catfile($dir, 'config_h.SH') and -f 'File::Spec'->catfile($dir, 'perl.h') and -f 'File::Spec'->catfile($dir, 'lib', 'Exporter.pm'))
394 13 0 unless $self->perl_src