Branch Coverage

blib/lib/Acme/Colour.pm
Criterion Covered Total %
branch 38 38 100.0


line true false branch
24 1 1 if ($$hash{'constants'}) { }
35 1 1 if (scalar keys %r == 0)
39 522 143 if $colour =~ /\d/
58 8 9 if (exists $r{$interp}) { }
85 22 1 if (defined $colour) { }
86 1 21 unless (exists $r{$colour})
110 19 1 unless defined $factor
114 1 19 unless exists $r{$colour}
116 1 18 unless exists $r{$add}
124 3 15 if $r1 > 1
125 3 15 if $g1 > 1
126 1 17 if $b1 > 1
135 17 2 unless defined $factor
139 1 18 unless exists $r{$colour}
141 1 17 unless exists $r{$add}
153 1 16 if $r1 > 1
154 3 14 if $g1 > 1
155 2 15 if $b1 > 1
172 217 4788 if ($delta < $bestdelta)