Branch Coverage

blib/lib/ExtUtils/CChecker.pm
Criterion Covered Total %
branch 31 60 51.6


line true false branch
102 0 6 if defined $args{'quiet'} and not $args{'quiet'}
223 7 7 defined $_ ? :
224 7 7 defined $_ ? :
234 5 5 defined $_ ? :
244 1 0 defined $diag ? :
253 1 1 if ($self->{'defines_to'}) { }
254 1 0 unless ($self->{'defines_fh'})
255 0 1 unless open $self->{'defines_fh'}, '>', $self->{'defines_to'}
306 2 5 @_ == 1 ? :
308 0 7 unless defined $args{'source'}
314 0 7 unless open my $test_source_fh, "> $test_source"
324 0 7 if exists $args{'include_dirs'}
325 0 7 if exists $args{'extra_compiler_flags'}
331 2 5 unless (defined $test_obj)
339 0 5 if exists $args{'extra_linker_flags'}
345 0 5 unless (defined $test_exe)
349 0 5 if (system("./$test_exe") != 0)
356 2 3 if defined $args{'define'}
388 1 1 unless $self->try_compile_run(%args)
432 0 0 unless ref(my $cflags = $args{'cflags'}) eq 'ARRAY'
435 0 0 unless ref $f eq 'ARRAY'
437 0 0 unless $self->try_compile_run(%args, 'extra_compiler_flags', $f)
488 0 0 unless ref(my $dirs = $args{'dirs'}) eq 'ARRAY'
491 0 0 unless ref $d eq 'ARRAY'
493 0 0 unless $self->try_compile_run(%args, 'include_dirs', $d)
544 0 0 unless ref(my $libs = $args{'libs'}) eq 'ARRAY'
549 0 0 unless $self->try_compile_run(%args, 'extra_linker_flags', \@extra_linker_flags)
597 0 0 unless $self->$trymethod(%args)
620 3 6 unless my(@vals) = @{$self->$key;}
625 2 4 $key eq 'include_dirs' ? :