Branch Coverage

lib/Graphics/Toolkit/Color/Space/Instance/RGB.pm
Criterion Covered Total %
branch 5 8 62.5


line true false branch
17 0 21 unless @_ == $rgb_def->dimensions
21 0 16 unless defined $hex and length $hex == 4 || length $hex == 7 and $hex =~ /^#[\da-f]+$/iu
25 4 12 length $hex == 3 ? :
28 217 0 if defined $_[0]