Branch Coverage

blib/lib/Imager/Fountain.pm
Criterion Covered Total %
branch 33 38 86.8


line true false branch
51 10 1 if ($opts{'gimp'}) { }
53 1 9 if (ref $opts{'gimp'}) { }
57 1 8 unless (open $fh, "<", $opts{'gimp'})
64 3 6 $opts{'name'} && ref $opts{'name'} ? :
93 2 0 if ($opts{'gimp'}) { }
95 0 2 if (ref $opts{'gimp'}) { }
99 0 2 unless (open $fh, ">", $opts{'gimp'})
127 56 43 if defined $_
288 4 1 if ($opts{'positions'} and $opts{'colors'}) { }
291 1 3 unless (@$positions == @$colors)
295 1 2 unless (@$positions >= 2)
331 1 8 unless ($head eq "GIMP Gradient")
337 3 5 if ($count =~ /^name:\s?(.*)/i)
338 3 0 if ref $name
342 1 7 unless ($count =~ /^\d+$/)
351 1 10 unless (@row == 13)
374 1 1 unless defined $name
376 1 1 if ($name)
388 0 4 unless (print $fh "\n")