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 40 31 defined $hex and not ref $hex
40 15 16 defined $hex and not ref $hex and length $hex == 4 || length $hex == 7
15 2 14 defined $hex and not ref $hex and length $hex == 4 || length $hex == 7 and substr($hex, 0, 1) eq "#"
17 2 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 5 11 15 length $hex == 4 || length $hex == 7