Branch Coverage

blib/lib/Image/Random.pm
Criterion Covered Total %
branch 13 18 72.2


line true false branch
42 1 7 if (defined $$self{'color'} and not $$self{'color'}->isa('Imager::Color'))
50 6 1 if (defined $$self{'type'})
64 0 3 if ($$self{'color'}) { }
79 0 3 if (not defined $$self{'type'}) { }
86 0 0 if ($suffix eq 'jpg')
101 0 3 unless ($ret)
112 1 2 if ($width and $height)
123 2 1 if ($type)
135 2 6 if (none sub { $type eq $_; } , 'bmp', 'gif', 'jpeg', 'png', 'pnm', 'raw', 'sgi', 'tga', 'tiff')