Branch Coverage

blib/lib/Alien/Libarchive/Installer.pm
Criterion Covered Total %
branch 1 148 0.6


line true false branch
17 0 0 unless $response->{'success'}
21 0 0 unless $Alien::Libarchive::Installer::a->[0] <=> $Alien::Libarchive::Installer::b->[0] or $Alien::Libarchive::Installer::a->[1] <=> $Alien::Libarchive::Installer::b->[1]
39 0 0 if (defined $ENV{'ALIEN_LIBARCHIVE_INSTALL_MIRROR'})
42 0 0 wantarray ? :
50 0 0 unless $response->{'success'}
61 0 0 wantarray ? :
72 0 1 if ($^O eq 'MSWin32')
75 0 0 if ($Config::Config{'cc'} =~ /cl(\.exe)?$/i) { }
101 0 0 unless defined $options{'alien'}
104 0 0 unless $options{'test'} =~ /^(compile|ffi|both)$/
106 0 0 if ($options{'alien'} and eval ' use Alien::Libarchive 0.21; 1 ')
126 0 0 if $options{'test'} =~ /^(compile|both)$/
127 0 0 if $options{'test'} =~ /^(ffi|both)$/
129 0 0 unless $@
137 0 0 if ($options{'test'} =~ /^(ffi|both)$/)
141 0 0 if ($^O eq 'MSWin32') { }
156 0 0 unless opendir $dh, $dir
163 0 0 if ($^O eq 'MSWin32') { }
0 0 elsif ($^O eq 'cygwin') { }
165 0 0 unless $file =~ /^libarchive-[0-9]+\.dll$/i
169 0 0 unless $file =~ /^cygarchive-[0-9]+\.dll$/i
173 0 0 unless $file =~ /^libarchive\.(dylib|so(\.[0-9]+)*)$/
187 0 0 if $options{'test'} =~ /^(compile|both)$/
188 0 0 if $options{'test'} =~ /^(ffi|both)$/
197 0 0 unless (defined $dir)
209 0 0 if $@
211 0 0 if $?
215 0 0 unless (defined $value)
218 0 0 if $?
230 0 0 if ($^O eq 'MSWin32')
232 0 0 unless ($Config::Config{'cc'} =~ /cl(\.exe)?$/i)
247 0 0 unless $options{'test'} =~ /^(compile|ffi|both)$/
248 0 0 unless $prefix
270 0 0 if @list == 0
271 0 0 if @list > 1
278 0 0 if (not $Config::Config{'cc'} =~ /cl(\.exe)?$/i) { }
281 0 0 if $?
287 0 0 $make =~ /nmake(\.exe)?$/ ? :
294 0 0 if $?
297 0 0 if $?
299 0 0 if $?
304 0 0 $^O =~ /^(MSWin32|cygwin)$/ ? :
314 0 0 unless /\.so/
320 0 0 if (-l $from) { }
340 0 0 if (not $Config::Config{'cc'} =~ /cl(\.exe)?$/i) { }
367 0 0 if (defined $version and $version =~ /^[12]\./)
388 0 0 unless /\.so/
392 0 0 if ($^O eq 'cygwin' or $^O eq 'MSWin32')
398 0 0 if $options{'test'} =~ /^(compile|both)$/
399 0 0 if $options{'test'} =~ /^(ffi|both)$/
405 0 0 if $error
418 0 0 unless defined $prefix
419 0 0 if $^O eq 'MSWin32' and $prefix eq '\\'
421 0 0 unless (defined $self->{'dlls'} and defined $self->{'dll_dir'})
425 0 0 if ($^O eq 'cygwin') { }
437 0 0 unless defined $self->{'libs'}
438 0 0 unless ref $self->{'libs'}
440 0 0 unless defined $path
443 0 0 if ($^O eq 'openbsd') { }
460 0 0 if ($prefix eq '' and $self->{'dll_dir'}[0] eq '')
468 0 0 $^O eq 'MSWin32' ? :
476 0 0 unless defined $self->{'quiet'}
479 0 0 unless ($cbuilder->have_compiler)
509 0 0 if (my $error = $@)
522 0 0 if (my $error = $@)
528 0 0 if ($test_exe =~ /\s/)
530 0 0 if $^O eq 'MSWin32'
531 0 0 if $^O eq 'cygwin'
536 0 0 if ($? == -1) { }
0 0 elsif ($? & 127) { }
0 0 elsif ($?) { }
552 0 0 if ($output =~ /version = '([0-9]+)([0-9]{3})([0-9]{3})'/) { }
578 0 0 if $@
579 0 0 if (&$archive_version_number() =~ /^([0-9]+)([0-9]{3})([0-9]{3})/)