Branch Coverage

lib/FFI/Build/Platform.pm
Criterion Covered Total %
branch 42 80 52.5


line true false branch
40 1776 7 ref $self ? :
61 0 43 if ($osname eq 'darwin') { }
0 43 elsif ($osname =~ /^(MSWin32|msys|cygwin)$/) { }
73 2 41 if (wantarray) { }
82 0 41 if ($self->osname eq 'cygwin') { }
0 41 elsif ($self->osname eq 'msys') { }
0 41 elsif ($self->osname eq 'MSWin32') { }
123 6 0 if ($self->{'config'}{'ccname'} eq 'gcc') { }
0 0 elsif ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
125 0 6 if ($cc[0] =~ /gcc$/)
129 0 0 if $self->which($maybe[0])
131 0 6 if ($cc[0] =~ /clang/)
135 0 0 if $self->which($maybe[0])
145 0 18 if $self->which($maybe)
167 0 2 if ($self->osname eq 'darwin') { }
170 0 0 if (/^(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 148 208 if (ref $_) { }
228 0 208 if $win
244 36 36 unless $@
253 0 22 if ($self->osname eq 'cygwin') { }
0 22 elsif ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
0 22 elsif ($self->osname eq 'MSWin32') { }
0 22 elsif ($self->osname eq 'darwin') { }
272 0 0 if ($_ eq '-bundle') { }
284 5 2 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 62 if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
350 0 20 if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
0 20 elsif ($self->osname eq 'darwin') { }
369 0 7 if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
384 20 0 unless $self->osname eq "MSWin32" and $self->{'config'}{'ccname'} eq "cl"
393 0 20 ref $command ? :
401 284 384 if (ref $_) { }
409 8 2 if (ref $_) { }