Branch Coverage

blib/lib/ExtUtils/CppGuess.pm
Criterion Covered Total %
branch 19 50 38.0


line true false branch
121 1 0 unless (exists $self->{'config'} and defined $self->{'config'})
126 1 0 unless (exists $self->{'cc'} and defined $self->{'cc'})
130 1 0 exists $self->{'config'}{'cc'} && defined $self->{'config'}{'cc'} ? :
134 1 0 unless (exists $self->{'os'} and defined $self->{'os'})
138 1 0 exists $self->{'config'}{'osname'} && defined $self->{'config'}{'osname'} ? :
157 3 1 if $self->{'guess'}
159 0 1 if ($self->_os =~ /^mswin/i) { }
160 0 0 unless $self->_guess_win32
162 0 1 unless $self->_guess_unix
171 0 2 unless $self->guess_compiler
176 0 2 if defined $self->{'extra_compiler_flags'}
185 0 2 unless $self->guess_compiler
189 0 2 if defined $self->{'extra_linker_flags'}
226 0 0 if ($self->_cc_is_gcc($c_compiler)) { }
0 0 elsif ($self->_cc_is_msvc($c_compiler)) { }
249 0 1 unless ($self->_cc_is_gcc($c_compiler))
258 0 1 if $self->_os eq 'netbsd' and not $self->{'guess'}{'extra_lflags'} =~ /-lgcc_s/
272 0 2 unless defined $out
282 1 0 if (open my $fh, '|-', $cmd)
286 0 1 unless defined $out
305 1 0 if ($cc_version =~ /\bg(?:cc|\+\+)/i or scalar _capture("$cc") =~ /\bgcc\b/i or scalar _capture_empty_stdin("$cc -dM -E -") =~ /__GNUC__/ or scalar $cc_version =~ /\bcc\b.*Free Software Foundation/is)
320 0 0 unless $self->guess_compiler
327 0 0 unless $self->guess_compiler
337 0 0 defined $self->{'extra_compiler_flags'} ? :
346 0 0 defined $self->{'extra_linker_flags'} ? :