Branch Coverage

blib/lib/Graphics/ColorUtils.pm
Criterion Covered Total %
branch 75 78 96.1


line true false branch
58 1023 338 wantarray ? :
118 54 260 if ($maxc == $minc)
121 142 118 $m <= 1 ? :
124 86 174 if ($r == $maxc) { }
100 74 elsif ($g == $maxc) { }
74 0 elsif ($bb == $maxc) { }
133 30 230 if ($h < 0)
143 5 323 if ($s == 0)
148 203 120 $l <= 0.5 ? :
161 95 874 if ($hue > 360) { }
128 746 elsif ($hue < 0) { }
164 158 811 if ($hue < 60) { }
323 488 elsif ($hue < 180) { }
157 331 elsif ($hue < 240) { }
185 51 263 $maxc == 0 ? :
187 54 260 if ($s == 0)
190 86 174 if ($r == $maxc) { }
100 74 elsif ($g == $maxc) { }
74 0 elsif ($bb == $maxc) { }
199 30 230 if ($h < 0)
211 6 322 if ($s == 0)
221 69 253 if ($i == 0) { }
60 193 elsif ($i == 1) { }
36 157 elsif ($i == 2) { }
60 97 elsif ($i == 3) { }
61 36 elsif ($i == 4) { }
36 0 elsif ($i == 5) { }
455 1 3 unless (exists $_gradients{$name})
465 1 30 unless (exists $_gradients{$name})
466 3 27 if ($frac < 0 or $frac >= 1)
477 2 1 if (exists $_gradients{$name})
875 18 38 if ($ns ne '')
876 16 2 if (exists $_colors{$norm}) { }
884 10 28 if (exists $_colors{$core})
889 5 23 if ($core ne $norm)
892 21 2 if (exists $_colors{$norm})
914 2 6 $ns eq '' ? :
916 3 5 if (exists $_colors{$crr})
936 34 30 if ($name =~ /:/)