Branch Coverage

blib/lib/Graphics/ColorNames/GrayScale.pm
Criterion Covered Total %
branch 12 16 75.0


line true false branch
62 613 2405 if exists $RgbColors{$name}
65 2405 0 if ($name =~ /^(gr[ae]y|red|green|blue|yellow|cyan|purple)([\da-f]+\%?)$/) { }
70 1 2404 unless (keys %Schemes)
83 0 2405 unless exists $Schemes{$color}
86 2048 357 if ($degree =~ /^\d{3}$/) { }
101 256 elsif ($degree =~ /^(\d{1,3})\%$/) { }
256 0 elsif ($degree =~ /^[\da-f]{2}$/) { }
96 0 2405 if $byte > 255