Branch Coverage

blib/lib/PDF/Collage.pm
Criterion Covered Total %
branch 17 34 50.0


line true false branch
26 0 6 @args == 0 ? :
28 1 5 if defined $args{'resolver'}
29 0 5 if defined $args{'dir'}
30 0 5 if defined $args{'tar'}
32 0 5 if defined $args{'definition'}
33 5 0 if (defined(my $auto = $args{'auto'}))
35 0 5 if $ar eq "CODE"
37 0 5 if ($ar eq "" and $auto =~ /\A [\[\{]/msux)
41 0 5 if $ar eq "" and $ar =~ /\A \s* [\[\{] /msux or $ar eq "HASH" or $ar eq "ARRAY"
46 0 5 if $ar ne ""
47 0 5 unless -r $auto
49 3 2 if -d $auto
51 0 2 unless open my $fh, "<:raw", $auto
54 0 2 unless defined $n
56 0 2 if $first eq "{" or $first eq "{"
65 0 0 unless ref $def
66 0 0 if ref $def eq "ARRAY"