Branch Coverage

lib/Graphics/Fig/Color.pm
Criterion Covered Total %
branch 7 22 31.8


line true false branch
77 0 0 unless ($name =~ /^[^#\s]([^#]*[^# ])?$/)
92 0 11 unless ($hex =~ /^#[[:xdigit:]]{6}$/)
109 6 5 if (defined($number = $hexToNumber->{$hex}))
114 0 5 if ($#{$customHex;} == 511)
157 31 11 if (defined($temp = $nameToNumber->{$color}))
164 11 0 if ($color =~ /^#/)
173 0 0 unless (defined $self->{'colorNames'})
177 0 0 if (defined $temp and $temp ne "")
201 0 0 if (defined($number = $nameToNumber->{$name}))
202 0 0 if ($number < 32)
206 0 0 if ($hex ne ${$customHex;}[$number - 32])