Branch Coverage

blib/lib/Alien/Base.pm
Criterion Covered Total %
branch 87 146 59.5


line true false branch
19 0 3 if $class eq "Alien::Base"
21 3 0 if $class->runtime_prop
23 0 0 if $class->install_type("system")
49 0 0 if $loaded->{$l}
52 0 0 unless ($path)
79 32 0 if (-f $pm)
82 31 1 if (-d $share)
98 22 0 $class->config('finished_installing') ? :
103 0 22 unless defined $dist_dir and -d $dist_dir
120 0 38 if $^O =~ /^(MSWin32|msys)$/
122 0 38 if $^O =~ /^(MSWin32|msys)$/
124 34 4 if ($prefix ne $distdir)
140 10 2 $class->runtime_prop ? :
146 8 0 $class->runtime_prop ? :
152 12 2 $class->runtime_prop ? :
158 8 0 $class->runtime_prop ? :
166 11 2 $self->runtime_prop ? :
178 1 2 unless defined(my $version = $self->version)
188 1 1 unless defined(my $version = $self->version)
198 1 1 unless defined(my $version = $self->version)
217 9 0 if ($x_isnum and $y_isnum) { }
0 0 elsif (not $x_isnum || $y_isnum) { }
219 2 7 if $x != $y
223 0 0 if $x ne $y
239 22 2 @_ ? :
248 2 2 if ($self->install_type("system"))
251 0 2 $static ? :
258 0 2 if $! or $?
262 2 0 if ($self->config("system_provides"))
263 0 2 if (my $system_provides = $self->config("system_provides")->{$keyword})
264 0 0 length $pcdata ? :
281 2 0 if (defined $self->config("original_prefix") and $self->config("original_prefix") ne $self->dist_dir)
284 0 2 if $^O eq "MSWin32"
304 14 0 if -d $_ or not /\.pc$/
311 0 2 unless keys %all
322 0 2 if @_
326 2 0 if (keys %all) { }
339 44 28 if (my $ab_config = $class->runtime_prop)
350 0 28 if ($@)
355 0 0 if $INC{$pm}
366 0 39 if ($^O eq 'MSWin32') { }
398 4 1 if ($class->install_type('system')) { }
400 4 0 if (my $prop = $class->runtime_prop)
402 0 4 if ($prop->{'ffi_checklib'}{'system'})
407 1 3 if defined $prop->{'ffi_name'}
411 3 0 unless (defined $name)
414 0 3 unless defined $name
424 1 3 if ($flag =~ /^-L(.*)$/)
437 1 0 if (my $prop = $class->runtime_prop)
439 0 1 if ($prop->{'ffi_checklib'}{'share'})
445 1 0 if (-d $dynamic)
466 4 3 if ($class->install_type('system')) { }
469 0 4 unless defined $prop
470 4 0 unless defined $prop->{'system_bin_dir'}
471 0 0 ref $prop->{'system_bin_dir'} ? :
476 3 0 -d $dir ? :
484 1 1 if ($class->install_type('system')) { }
491 1 0 -d $dir ? :
503 0 0 unless $class->config("inline_auto_include")
509 0 0 unless defined $language
510 0 0 unless $language =~ /^(C|CPP)$/
519 0 0 if (@{$class->inline_auto_include;} > 0)
534 44 157 if (ref $class)
539 44 0 if defined $self->{'_alt'}
543 147 10 if exists $alien_build_config_cache{$class}
546 0 10 ref $class ? :
549 1 9 if $@
551 1 8 unless -r $alien_json
565 1 5 ref $old ? :
569 1 5 if (ref $old and defined $old->{'_alt'}) { }
577 5 1 if ($runtime_prop->{'alt'}{$name}) { }
602 1 2 defined $alts ? :
613 2 2 defined $alts ? :