Branch Coverage

blib/lib/ExtUtils/CChecker.pm
Criterion Covered Total %
branch 29 52 55.7


line true false branch
94 0 5 if defined $args{'quiet'} and not $args{'quiet'}
200 7 7 defined $_ ? :
201 7 7 defined $_ ? :
211 5 5 defined $_ ? :
221 1 0 defined $diag ? :
230 1 1 if ($$self{'defines_to'}) { }
231 1 0 unless ($$self{'defines_fh'})
232 0 1 unless open $$self{'defines_fh'}, '>', $$self{'defines_to'}
281 2 5 @_ == 1 ? :
283 0 7 unless defined $args{'source'}
289 0 7 unless open my $test_source_fh, "> $test_source"
299 0 7 if exists $args{'include_dirs'}
300 0 7 if exists $args{'extra_compiler_flags'}
306 2 5 unless (defined $test_obj)
314 0 5 if exists $args{'extra_linker_flags'}
320 0 5 unless (defined $test_exe)
324 0 5 if (system("./$test_exe") != 0)
331 2 3 if defined $args{'define'}
361 1 1 unless $self->try_compile_run(%args)
403 0 0 unless ref(my $dirs = $args{'dirs'}) eq 'ARRAY'
406 0 0 unless ref $d eq 'ARRAY'
408 0 0 unless $self->try_compile_run(%args, 'include_dirs', $d)
457 0 0 unless ref(my $libs = $args{'libs'}) eq 'ARRAY'
462 0 0 unless $self->try_compile_run(%args, 'extra_linker_flags', \@extra_linker_flags)
501 0 0 unless $self->$trymethod(%args)
528 3 6 if (exists $args{$key}) { }