Condition Coverage

lib/Graphics/Toolkit/Color/Space/Instance/RGB.pm
Criterion Covered Total %
condition 14 15 93.3


and 3 conditions

line !l l&&!r l&&r condition
12 0 77 47 defined $hex and not ref $hex
77 27 20 defined $hex and not ref $hex and length $hex == 4 || length $hex == 7
27 4 16 defined $hex and not ref $hex and length $hex == 4 || length $hex == 7 and substr($hex, 0, 1) eq "#"
31 4 12 defined $hex and not ref $hex and length $hex == 4 || length $hex == 7 and substr($hex, 0, 1) eq "#" and $hex =~ /^#[\da-f]+$/iu

or 3 conditions

line l !l&&r !l&&!r condition
12 7 13 27 length $hex == 4 || length $hex == 7