Branch Coverage

blib/lib/Test/Alien/Build.pm
Criterion Covered Total %
branch 71 100 71.0


line true false branch
48 160 135 if $package eq "Test::Alien::Build"
50 236 59 @_ % 2 ? :
0 295 @_ == 0 ? :
53 45 250 unless &any(sub { /^targ$/; } , @alienfile::EXPORT)
61 885 237 if (@_) { }
74 237 58 if ($args{'source'}) { }
82 0 58 unless (defined $args{'filename'})
104 8 272 if $out
114 240 161 if defined $build_root and -d $build_root
128 1 161 if (@_ == 1 and not defined $_[0]) { }
1 160 elsif (@_ == 1 and eval { do { $_[0]->isa('Alien::Build') } }) { }
150 2 160 if $error
161 12 0 if ($build)
164 2 10 if (my $error = $@)
167 2 0 if ($error =~ /Required (.*) (.*),/)
178 7 3 if (my $error = $@)
181 7 0 if ($error =~ /Required (.*) (.*),/)
198 0 38 unless defined $type and $type =~ /^(system|share)$/
204 37 1 if ($build) { }
210 35 2 if ($type eq $actual) { }
244 4 0 if ($build) { }
254 1 3 if ($error) { }
257 1 0 if defined $out
263 3 0 if (-d $file or -f $file) { }
266 3 0 if defined $out
271 0 0 if defined $out
296 0 6 $archive ? :
301 6 0 if ($build) { }
313 1 5 if ($error) { }
316 1 0 if defined $out
321 5 0 if (-d $dir) { }
351 0 29 defined $_[0] && ref $_[0] eq 'HASH' ? :
362 28 1 if ($build) { }
373 1 27 if ($error) { }
376 1 0 if defined $out
383 27 0 if defined $out
431 0 0 if ($build_root) { }
435 0 0 if $child->basename eq "prefix"
458 3 0 if ($build) { }
466 0 3 if ($error) { }
469 0 0 if defined $out and $out ne ""
475 1 2 if defined $out and $out ne ""
500 17 1 if ($build) { }
503 1 16 if ($@) { }
537 15 2 if ($build_alienfile and $build_root and not defined $build) { }
540 1 14 if ($@) { }
552 1 1 if ($build) { }
568 3 14 unless $ok and $build
578 0 1 unless defined $code
579 0 1 if $ENV{'ALIEN_BUILD_RC'} ne "-"