Branch Coverage

blib/lib/IRC/Formatting/HTML/Common.pm
Criterion Covered Total %
branch 16 18 88.8


line true false branch
37 7 5 if ($color =~ /^#?[a-f0-9]+$/i) { }
4 1 elsif ($color =~ /^rgb/) { }
43 1 11 unless $rgb
49 28 90 if ($_dist < $dist)
52 6 112 if $dist == 0
70 4 0 if ($color =~ /^rgba? \s* \( \s* (\d+) \s* , \s* (\d+) \s* , \s* (\d+) \s* \)/xi)
79 7 64 if (substr($color, 0, 1) eq '#')
83 67 4 if (length $color == 3)
88 71 0 if (@rgb == 3)