Branch Coverage

blib/lib/WebColors.pm
Criterion Covered Total %
branch 15 16 93.7


line true false branch
676 3 7 if ($hex =~ /^[0-9a-f]{6}$/) { }
1 6 elsif ($hex =~ /^[0-9a-f]{3}$/) { }
711 6 3 unless (defined $r)
741 2 12 unless $rgb
766 2 1 if defined $c[0]
789 2 0 if (defined $c[0])
803 130 1023 $a == $b || $a + 1 == $b || $a - 1 == $b ? :
828 4 113 if (_almost($r, $r1) and _almost($g, $g1) and _almost($b, $b1))