Branch Coverage

blib/lib/FFI/Build/Platform.pm
Criterion Covered Total %
branch 26 50 52.0


line true false branch
36 260 0 if (defined wantarray) { }
38 6 254 if (wantarray) { }
56 431 7 ref $self ? :
76 0 19 if ($osname eq 'darwin') { }
0 19 elsif ($osname =~ /^(MSWin32|msys|cygwin)$/) { }
96 0 17 if ($self->osname =~ /^(MSWin32|msys|cygwin)$/) { }
121 11 0 if ($self->{'config'}{'ccname'} eq 'gcc') { }
0 0 elsif ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
123 0 11 if ($self->cc =~ /gcc$/)
127 0 0 if $self->which($maybe)
129 0 11 if ($self->cc =~ /clang/) { }
152 2 0 if ($self->{'config'}{'ccname'} eq 'gcc') { }
154 0 2 if ($self->cc =~ /gcc$/)
158 0 0 if $self->which($maybe)
186 0 62 if ($self->osname eq 'MSWin32') { }
199 52 8 wantarray ? :
216 0 7 if ($self->osname eq 'cygwin') { }
0 7 elsif ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
0 7 elsif ($self->osname eq 'MSWin32') { }
0 7 elsif ($self->osname eq 'darwin') { }
266 5 0 unless (defined $self->{'cc_mm_works'})
291 1 4 if ($verbose)
297 5 0 if (not $exit and $out =~ /foo\.h/) { }
315 0 14 if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }
330 0 5 if ($self->osname eq 'MSWin32' and $self->{'config'}{'ccname'} eq 'cl') { }