Branch Coverage

blib/lib/FFI/Build/Platform.pm
Criterion Covered Total %
branch 40 80 50.0


line true false branch
40 1320 7 ref $self ? :
61 0 43 if ($osname eq 'darwin') { }
0 43 elsif ($osname =~ /^(MSWin32|msys|cygwin)$/) { }
73 2 41 wantarray ? :
82 0 41 if ($self->osname eq 'cygwin') { }
0 41 elsif ($self->osname eq 'msys') { }
0 41 elsif ($self->osname eq 'MSWin32') { }
123 13 0 if ($self->{'config'}{'ccname'} eq 'gcc') { }
0 0 elsif ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
125 0 13 if ($cc[0] =~ /gcc$/)
129 0 0 if $self->which($maybe[0])
131 0 13 if ($cc[0] =~ /clang/)
135 0 0 if $self->which($maybe[0])
145 13 0 if $self->which($maybe)
167 0 6 if ($self->osname eq 'darwin') { }
170 0 0 /^(cc|clang|gcc)$/ ? :
185 2 0 if ($self->{'config'}{'ccname'} eq 'gcc') { }
187 0 2 if ($cc[0] =~ /gcc$/)
191 0 0 if $self->which($maybe[0])
196 0 2 if $self->which($maybe)
224 0 226 ref $_ ? :
228 0 226 if $win
244 41 0 unless $@
253 0 21 if ($self->osname eq 'cygwin') { }
0 21 elsif ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
0 21 elsif ($self->osname eq 'MSWin32') { }
0 21 elsif ($self->osname eq 'darwin') { }
272 0 0 $_ eq '-bundle' ? :
284 5 0 unless (defined $self->{'cc_mm_works'})
307 0 5 if ($verbose >= 2) { }
1 4 elsif ($verbose >= 1) { }
317 5 0 if (not $exit and $out =~ /foo\.h/) { }
335 0 33 if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
350 0 19 if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
0 19 elsif ($self->osname eq 'darwin') { }
369 0 8 if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
384 19 0 unless $self->osname eq "MSWin32" and $self->{'config'}{'ccname'} eq "cl"
393 2 15 ref $command ? :
401 186 232 ref $_ ? :
409 12 2 ref $_ ? :