Branch Coverage

blib/lib/Term/Colormap.pm
Criterion Covered Total %
branch 16 16 100.0


line true false branch
142 1 1246 if ($rgb =~ /[^a-f0-9]/)
146 1000 246 unless (defined $rgb2color->{$rgb})
159 5132 250868 if ($dist < $closest)
180 13 1 if (exists $$color_mapping{lc $name})
198 4 316 if ($color < 0 or $color >= scalar @$color2rgb)
214 32 32 unless ('h' eq substr(lc $orientation, 0, 1))
230 1 2 if $ii < $indent
269 2 126 $bg_or_fg eq 'fg' ? :