Branch Coverage

blib/lib/Image/Caa.pm
Criterion Covered Total %
branch 26 56 46.4


line true false branch
46 1 13 $$opts{'black_bg'} ? :
95 651252 1183756 if ($dist <= $distbg) { }
286846 896910 elsif ($dist <= $distfg) { }
157 0 5 if (defined $image)
163 0 0 if "$x"
235 0 5 if ($x1 > $x2)
236 0 5 if ($y1 > $y2)
242 0 5 $y1 > 0 ? :
244 0 10 $x1 > 0 ? :
267 0 20 if (defined $image) { }
277 0 0 if ($to_l or $to_t or $to_r or $to_b) { }
309 20 0 if ($$self{'solid_background'}) { }
332 0 20 if ($distbg > $distfg)
340 15 5 if ($ch >= scalar @{$density_chars;})
351 0 0 if ($sat < 512 + $$self{'dither'}->get * 8) { }
0 0 elsif ($val > 2048 + $$self{'dither'}->get * 4) { }
388 0 0 if $min > $g
389 0 0 if $max < $g
390 0 0 if $min > $b
391 0 0 if $max < $b
396 0 0 if ($delta) { }
402 0 0 if ($r == $max) { }
0 0 elsif ($g == $max) { }
425 2064424 229376 $$self{'hsv_palette'}[$index * 4 + 3] ? :
426 917524 1376276 $$self{'hsv_palette'}[$index * 4 + 2] ? :
435 1 28 if $@
439 1 28 if $@
441 28 1 if (not $@ and defined $obj)