Branch Coverage

blib/lib/WebColors.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
735 3 7 if ($hex =~ /^[0-9a-f]{6}$/) { }
1 6 elsif ($hex =~ /^[0-9a-f]{3}$/) { }
771 6 3 unless (defined $r)
811 2 18 if (not $rgb and $name =~ /^[0-9a-f]{6}$/i)
819 2 18 unless $rgb
845 6 1 if defined $c[0]
869 2 0 if (defined $c[0])
883 130 1112 $a == $b || $a + 1 == $b || $a - 1 == $b ? :
901 0 4 if ($r eq 'black')
915 4 113 if (_almost($r, $r1) and _almost($g, $g1) and _almost($b, $b1))
939 0 2 if ($r eq 'black')
985 0 2 if ($r eq 'black')
1057 0 3 $_ + $shade * $by > 255 ? :
1077 0 3 $_ - $shade * $by < 0 ? :