Branch Coverage

/root/.cpan/build/Imager-1.018-0/blib/lib/Imager/Fill.pm
Criterion Covered Total %
branch 31 42 73.8


line true false branch
24 22 45 if ($hsh{'solid'}) { }
22 23 elsif (defined $hsh{'hatch'}) { }
7 16 elsif (defined $hsh{'fountain'}) { }
9 7 elsif (defined $hsh{'image'}) { }
7 0 elsif (defined $hsh{'type'} and $hsh{'type'} eq 'opacity') { }
26 22 0 if (UNIVERSAL::isa($solid, 'Imager::Color')) { }
0 0 elsif (UNIVERSAL::isa($solid, 'Imager::Color::Float')) { }
43 0 22 if (ref $hsh{'hatch'}) { }
22 0 elsif ($hsh{'hatch'} =~ /\D/) { }
48 1 21 unless (exists $hatch_types{$hsh{'hatch'}})
55 21 0 if (UNIVERSAL::isa($fg, 'Imager::Color')) { }
0 0 elsif (UNIVERSAL::isa($fg, 'Imager::Color::Float')) { }
83 7 21 if (defined $hsh{$name} and exists $names->{$name}{$hsh{$name}})
92 0 70 unless (defined $hsh{$name})
100 1 6 unless (ref $hsh{'segments'} and $hsh{'segments'} =~ /ARRAY/)
130 1 6 unless (defined $other_fill)
134 2 4 unless (ref $other_fill and eval { do { $other_fill->isa("Imager::Fill") } })
137 1 1 if (ref $other_fill and $other_fill =~ /HASH/) { }
138 0 1 unless $other_fill = "Imager::Fill"->new(%$other_fill)
144 1 1 unless ($other_fill)
152 1 4 unless defined $opacity