Branch Coverage

lib/Graphics/Toolkit/Color/Name.pm
Criterion Covered Total %
branch 72 88 81.8


line true false branch
20 17 1 if taken($name)
25 20 0 if taken($name)
30 1 122 if ref $rgb[0] eq "ARRAY"
31 0 123 if $RGB->check([@rgb])
33 0 123 wantarray ? :
38 0 2 if ref $hsl[0] eq "ARRAY"
39 0 2 if $HSL->check([@hsl])
41 0 2 wantarray ? :
47 2 15 if @_ != 2
49 7 8 if $HSL->check($hsl_center)
50 5 3 ref $radius eq 'ARRAY' ? :
51 1 7 if $HSL->check($hsl_delta)
53 0 7 if $hsl_delta->[0] > 180
57 2 5 if $min[1] < 0
58 0 7 if $min[2] < 0
59 4 3 if $max[1] > 100
60 2 5 if $max[2] > 100
61 1 3 $max[0] > 360 ? :
3 4 $min[0] < 0 ? :
65 334 323 unless defined $name_from_hsl[$h]
67 1922 166 unless defined $name_from_hsl[$h][$s]
70 1914 87 unless defined $name
71 27 60 ref $name ? :
75 3 4 unless ref $radius
82 0 6 if ref $rgb[0] eq "ARRAY"
83 1 5 unless defined $name and $name
84 3 2 if $RGB->check([@rgb])
91 0 2 if ref $hsl[0] eq "ARRAY"
92 0 2 unless defined $name and $name
93 0 2 if $HSL->check(\@hsl)
101 1 3 if taken($name)
104 3 0 ref $ret ? :
114 56 58 unless exists $name_from_rgb[$_[0]] and exists $name_from_rgb[$_[0]][$_[1]] and exists $name_from_rgb[$_[0]][$_[1]][$_[2]]
117 31 27 ref $cell ? :
121 0 2 unless exists $name_from_hsl[$_[0]] and exists $name_from_hsl[$_[0]][$_[1]] and exists $name_from_hsl[$_[0]][$_[1]][$_[2]]
124 1 1 ref $cell ? :
130 286 3297 if (defined $cell) { }
131 21 265 if (ref $cell) { }
132 0 21 if (length $name < length $cell->[0]) { }
135 35 230 length $name < length $cell ? :
142 331 3252 if (defined $cell) { }
143 21 310 if (ref $cell) { }
144 0 21 if (length $name < length $cell->[0]) { }
147 55 255 length $name < length $cell ? :