Branch Coverage

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


line true false branch
34 0 20 unless $self->{'properties'}{'perl'} = $class->find_perl_interpreter
38 24517 3 unless exists $self->{'config'}{$k}
40 1 19 if defined $ENV{'CC'}
42 1 19 if defined $ENV{'CFLAGS'}
43 0 20 if defined $ENV{'CXX'}
44 0 20 if defined $ENV{'CXXFLAGS'}
45 0 20 if defined $ENV{'LD'}
47 1 19 if defined $ENV{'LDFLAGS'}
49 20 0 unless (exists $self->{'config'}{'cxx'})
54 19 1 if $self->{'config'}{'cc'} =~ /^\Q$ccbase$ccsfx\E$/
59 0 17 if (can_run($cxx1))
65 17 0 if (can_run($cxx2))
70 0 0 if (can_run($cxx))
75 3 17 unless (exists $self->{'config'}{'cxx'})
79 3 0 if defined $cflags
90 0 22 unless 'File::Spec'->file_name_is_absolute($perl = $^X) or -f ($perl = $Config::Config{'perlpath'})
149 1 12 unless defined $args{'source'}
155 0 12 $args{'object_file'} ? :
160 1 11 exists $args{'include_dirs'} && ref $args{'include_dirs'} ne 'ARRAY' ? :
162 10 2 unless $include_dirs_ref
166 12 0 unless $args{'defines'}
171 4 8 $args{'C++'} ? :
183 4 8 $args{'C++'} ? :
186 1 11 unless $self->do_system(@cc, @flags, $args{'source'})
193 4 5 $is_cplusplus ? :
194 4 5 $is_cplusplus ? :
195 2 7 if defined $self->{$have_compiler_flag}
205 3 4 if ($is_cplusplus) { }
220 2 5 $@ ? :
239 10 0 if (defined $args{'module_name'} and length $args{'module_name'})
242 0 10 if (defined &DynaLoader::mod2fname)
281 1 1 unless $args->{'dl_file'}
291 1 1 defined $args->{'dl_version'} ? :
312 9 0 unless ref $objects
318 0 9 if $args{'lddl'} and $self->need_prelink
328 8 1 $args{'lddl'} ? :
333 1 8 unless $self->do_system(@shrp, @ld, @output, @$objects, @linker_flags)
336 8 0 wantarray ? :
342 6 13 unless $self->{'quiet'}
349 26 74 unless defined $string
350 1 73 if UNIVERSAL::isa($string, 'ARRAY')
352 9 64 unless length $string
357 0 64 if $^O eq 'MSWin32'
367 13 4 unless $ENV{'PERL_CORE'}
374 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'))
395 13 0 unless $self->perl_src