Branch Coverage

blib/lib/Graphics/Colourset.pm
Criterion Covered Total %
branch 0 80 0.0


line true false branch
141 0 0 unless defined $$self{'shade'}
143 0 0 if ($$self{'shade'} < 1 or $$self{'shade'} > 4)
148 0 0 if ($$self{'hue'} == 360) { }
150 0 0 if ($$self{'shade'} == 1) { }
0 0 elsif ($$self{'shade'} == 2) { }
0 0 elsif ($$self{'shade'} == 3) { }
0 0 elsif ($$self{'shade'} == 4) { }
205 0 0 if ($$self{'shade'} == 1) { }
0 0 elsif ($$self{'shade'} == 2) { }
0 0 elsif ($$self{'shade'} == 3) { }
0 0 elsif ($$self{'shade'} == 4) { }
243 0 0 if ($$self{'hue'} > 220 and $$self{'hue'} < 280) { }
370 0 0 if ($$colset1{'hue'} == 360 and $$colset2{'hue'} >= 50 and $$colset2{'hue'} <= 80 or $$colset2{'hue'} == 360 and $$colset1{'hue'} >= 50 and $$colset1{'hue'} <= 80) { }
0 0 elsif ($$colset1{'hue'} == 360 and $$colset2{'hue'} > 10 and $$colset2{'hue'} < 50 and $$colset2{'shade'} > 1 or $$colset2{'hue'} == 360 and $$colset1{'hue'} > 10 and $$colset1{'hue'} < 50 and $$colset1{'shade'} > 1) { }
0 0 elsif ($$colset1{'hue'} == 360 or $$colset2{'hue'} == 360) { }
400 0 0 if ($hdiff <= 30)
405 0 0 if ($$colset1{'hue'} >= 0 and $$colset1{'hue'} < 10 and $$colset1{'shade'} == 4 and $$colset2{'hue'} >= 60 and $$colset2{'hue'} < 70 and $$colset2{'shade'} != 4 or $$colset2{'hue'} >= 0 and $$colset2{'hue'} < 10 and $$colset2{'shade'} == 4 and $$colset1{'hue'} >= 60 and $$colset1{'hue'} < 70 and $$colset1{'shade'} != 4)
421 0 0 if ($$colset1{'hue'} > 10 and $$colset1{'hue'} <= 40 and $$colset1{'shade'} > 1 and $$colset1{'shade'} < 4 and $$colset2{'hue'} > 60 and $$colset2{'hue'} <= 100 or $$colset2{'hue'} > 10 and $$colset2{'hue'} <= 40 and $$colset2{'shade'} > 1 and $$colset2{'shade'} < 4 and $$colset1{'hue'} > 60 and $$colset1{'hue'} <= 100)
437 0 0 if ($$colset1{'hue'} >= 270 and $$colset1{'hue'} < 280 and $$colset2{'hue'} >= 330 and $$colset2{'hue'} < 340 and $$colset2{'shade'} > 1 or $$colset2{'hue'} >= 270 and $$colset2{'hue'} < 280 and $$colset1{'hue'} >= 330 and $$colset1{'hue'} < 340 and $$colset1{'shade'} > 1)
451 0 0 if ($$colset1{'hue'} >= 280 and $$colset1{'hue'} < 360 and $$colset2{'hue'} >= 340 && $$colset2{'hue'} < 360 || $$colset2{'hue'} >= 0 && $$colset2{'hue'} < 50 or $$colset2{'hue'} >= 280 and $$colset2{'hue'} < 360 and $$colset1{'hue'} >= 340 && $$colset1{'hue'} < 360 || $$colset1{'hue'} >= 0 && $$colset1{'hue'} < 50)
470 0 0 if ($$colset1{'hue'} > 10 and $$colset1{'hue'} <= 40 and $$colset1{'shade'} == 2 || $$colset1{'shade'} == 3 and $$colset2{'hue'} > 100 and $$colset2{'hue'} <= 130 or $$colset2{'hue'} > 10 and $$colset2{'hue'} <= 40 and $$colset2{'shade'} == 2 || $$colset2{'shade'} == 3 and $$colset1{'hue'} > 100 and $$colset1{'hue'} <= 130)
486 0 0 if ($$colset1{'hue'} >= 260 and $$colset1{'hue'} < 280 and $$colset2{'hue'} >= 350 && $$colset2{'hue'} < 360 || $$colset2{'hue'} >= 0 && $$colset2{'hue'} <= 10 or $$colset2{'hue'} >= 260 and $$colset2{'hue'} < 280 and $$colset1{'hue'} >= 350 && $$colset1{'hue'} < 360 || $$colset1{'hue'} >= 0 && $$colset1{'hue'} <= 10)
502 0 0 if ($$colset1{'hue'} >= 280 and $$colset1{'hue'} < 350 and $$colset2{'hue'} >= 10 and $$colset2{'hue'} < 80 or $$colset2{'hue'} >= 280 and $$colset2{'hue'} < 350 and $$colset1{'hue'} >= 10 and $$colset1{'hue'} < 80)
514 0 0 if ($$colset1{'hue'} > 10 and $$colset1{'hue'} < 90 and $$colset1{'shade'} != 1 and $$colset2{'hue'} > 130 and $$colset2{'hue'} < 210 and $$colset2{'shade'} != 1 or $$colset2{'hue'} > 10 and $$colset2{'hue'} < 90 and $$colset2{'shade'} != 1 and $$colset1{'hue'} > 130 and $$colset1{'hue'} < 210 and $$colset1{'shade'} != 1)
530 0 0 if ($$colset1{'hue'} > 50 and $$colset1{'hue'} < 70 and $$colset1{'shade'} == 1 and $$colset2{'hue'} > 130 and $$colset2{'hue'} < 210 and $$colset2{'shade'} != 1 or $$colset2{'hue'} > 50 and $$colset2{'hue'} < 70 and $$colset2{'shade'} == 1 and $$colset1{'hue'} > 130 and $$colset1{'hue'} < 210 and $$colset1{'shade'} != 1)
546 0 0 if ($$colset1{'hue'} > 150 and $$colset1{'hue'} < 200 and $$colset2{'hue'} > 270 and $$colset2{'hue'} < 320 or $$colset2{'hue'} > 150 and $$colset2{'hue'} < 200 and $$colset1{'hue'} > 270 and $$colset1{'hue'} < 320)
558 0 0 if ($$colset1{'hue'} > 240 and $$colset1{'hue'} < 290 and $$colset2{'hue'} > 0 and $$colset2{'hue'} < 50 or $$colset2{'hue'} > 240 and $$colset2{'hue'} < 290 and $$colset1{'hue'} > 0 and $$colset1{'hue'} < 50)
570 0 0 if ($$colset1{'hue'} >= 290 and $$colset1{'hue'} < 350 and $$colset2{'hue'} >= 50 and $$colset2{'hue'} < 110)
581 0 0 if ($$colset1{'shade'} == 3 && ($$colset1{'hue'} < 200 || $$colset1{'hue'} > 280) && ($$colset2{'shade'} == 2 || $$colset2{'shade'} == 4) || $$colset2{'shade'} == 3 && ($$colset2{'hue'} < 200 || $$colset2{'hue'} > 280) && ($$colset1{'shade'} == 2 || $$colset1{'shade'} == 4) and $$colset1{'hue'} != $$colset2{'hue'})
596 0 0 if ($$colset1{'hue'} >= 0 and $$colset1{'hue'} < 30 and $$colset1{'shade'} == 4 and $$colset2{'hue'} > 60 and $$colset2{'hue'} <= 120 and $$colset2{'shade'} != 4 or $$colset2{'hue'} >= 0 and $$colset2{'hue'} < 30 and $$colset2{'shade'} == 4 and $$colset1{'hue'} > 60 and $$colset1{'hue'} <= 120 and $$colset1{'shade'} != 4)
612 0 0 if ($$colset1{'hue'} >= 30 and $$colset1{'hue'} < 50 and $$colset1{'shade'} == 4 and $$colset2{'hue'} > 90 and $$colset2{'hue'} <= 130 and $$colset2{'shade'} != 4 or $$colset2{'hue'} >= 30 and $$colset2{'hue'} < 50 and $$colset2{'shade'} == 4 and $$colset1{'hue'} > 90 and $$colset1{'hue'} <= 130 and $$colset1{'shade'} != 4)
628 0 0 if ($$colset1{'hue'} >= 0 and $$colset1{'hue'} < 30 and $$colset1{'shade'} == 3 and $$colset2{'hue'} > 50 and $$colset2{'hue'} < 70 and $$colset2{'shade'} != 3 or $$colset2{'hue'} >= 0 and $$colset2{'hue'} < 30 and $$colset2{'shade'} == 3 and $$colset1{'hue'} > 50 and $$colset1{'hue'} < 70 and $$colset1{'shade'} != 3)
673 0 0 unless (defined $hue2)
676 0 0 if $hue2 < 0
677 0 0 if $hue2 > 360
684 0 0 if $hue2 < 0
685 0 0 if $hue2 > 360
727 0 0 if (defined $args{'shades'})
741 0 0 if (defined $args{'hues'})
768 0 0 if ($newalt->equals($cs) or $newalt->is_ugly($cs))