Condition Coverage

lib/Graphics/Toolkit/Color/Space/Instance/RGB.pm
Criterion Covered Total %
condition 7 12 58.3


and 3 conditions

line !l l&&!r l&&r condition
21 0 0 16 defined $hex and length $hex == 4 || length $hex == 7
0 0 16 defined $hex and length $hex == 4 || length $hex == 7 and $hex =~ /^#[\da-f]+$/iu

or 3 conditions

line l !l&&r !l&&!r condition
21 4 12 0 length $hex == 4 || length $hex == 7
28 4 12 196 $_[0] =~ /^#[[:xdigit:]]{3}$/u or $_[0] =~ /^#[[:xdigit:]]{6}$/u