Branch Coverage

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


line true false branch
18 0 0 unless $response->{'success'}
22 0 0 unless $Alien::Libarchive::Installer::a->[0] <=> $Alien::Libarchive::Installer::b->[0] or $Alien::Libarchive::Installer::a->[1] <=> $Alien::Libarchive::Installer::b->[1]
40 0 0 if (defined $ENV{'ALIEN_LIBARCHIVE_INSTALL_MIRROR'})
43 0 0 wantarray ? :
51 0 0 unless $response->{'success'}
62 0 0 wantarray ? :
74 0 1 if ($^O eq 'MSWin32')
77 0 0 if ($Config::Config{'cc'} =~ /cl(\.exe)?$/i) { }
103 0 0 unless defined $options{'alien'}
106 0 0 unless $options{'test'} =~ /^(compile|ffi|both)$/
108 0 0 if ($options{'alien'} and eval ' use Alien::Libarchive 0.21; 1 ')
128 0 0 if $options{'test'} =~ /^(compile|both)$/
129 0 0 if $options{'test'} =~ /^(ffi|both)$/
131 0 0 unless $@
139 0 0 if ($options{'test'} =~ /^(ffi|both)$/)
143 0 0 if ($^O eq 'MSWin32') { }
158 0 0 unless opendir $dh, $dir
165 0 0 if ($^O eq 'MSWin32') { }
0 0 elsif ($^O eq 'cygwin') { }
167 0 0 unless $file =~ /^libarchive-[0-9]+\.dll$/i
171 0 0 unless $file =~ /^cygarchive-[0-9]+\.dll$/i
175 0 0 unless $file =~ /^libarchive\.(dylib|so(\.[0-9]+)*)$/
189 0 0 if $options{'test'} =~ /^(compile|both)$/
190 0 0 if $options{'test'} =~ /^(ffi|both)$/
199 0 0 unless (defined $dir)
211 0 0 if $@
213 0 0 if $?
217 0 0 unless (defined $value)
220 0 0 if $?
232 0 0 if ($^O eq 'MSWin32')
234 0 0 unless ($Config::Config{'cc'} =~ /cl(\.exe)?$/i)
249 0 0 unless $options{'test'} =~ /^(compile|ffi|both)$/
250 0 0 unless $prefix
272 0 0 if @list == 0
273 0 0 if @list > 1
281 0 0 if ($version) { }
284 0 0 if (-r $patch)
290 0 0 if $?
302 0 0 if (not $Config::Config{'cc'} =~ /cl(\.exe)?$/i) { }
305 0 0 if $?
311 0 0 $make =~ /nmake(\.exe)?$/ ? :
318 0 0 if $?
321 0 0 if $?
323 0 0 if $?
328 0 0 $^O =~ /^(MSWin32|cygwin)$/ ? :
338 0 0 unless /\.so/
344 0 0 if (-l $from) { }
364 0 0 if (not $Config::Config{'cc'} =~ /cl(\.exe)?$/i) { }
391 0 0 if (defined $version and $version =~ /^[12]\./)
412 0 0 unless /\.so/
416 0 0 if ($^O eq 'cygwin' or $^O eq 'MSWin32')
422 0 0 if $options{'test'} =~ /^(compile|both)$/
423 0 0 if $options{'test'} =~ /^(ffi|both)$/
429 0 0 if $error
442 0 0 unless defined $prefix
443 0 0 if $^O eq 'MSWin32' and $prefix eq '\\'
445 0 0 unless (defined $self->{'dlls'} and defined $self->{'dll_dir'})
449 0 0 if ($^O eq 'cygwin') { }
461 0 0 unless defined $self->{'libs'}
462 0 0 unless ref $self->{'libs'}
464 0 0 unless defined $path
467 0 0 if ($^O eq 'openbsd') { }
484 0 0 if ($prefix eq '' and $self->{'dll_dir'}[0] eq '')
492 0 0 $^O eq 'MSWin32' ? :
500 0 0 unless defined $self->{'quiet'}
503 0 0 unless ($cbuilder->have_compiler)
533 0 0 if (my $error = $@)
546 0 0 if (my $error = $@)
552 0 0 if ($test_exe =~ /\s/)
554 0 0 if $^O eq 'MSWin32'
555 0 0 if $^O eq 'cygwin'
560 0 0 if ($? == -1) { }
0 0 elsif ($? & 127) { }
0 0 elsif ($?) { }
576 0 0 if ($output =~ /version = '([0-9]+)([0-9]{3})([0-9]{3})'/) { }
602 0 0 if $@
603 0 0 if (&$archive_version_number() =~ /^([0-9]+)([0-9]{3})([0-9]{3})/)