| lib/Graphics/Toolkit/Color/Space/Instance/RGB.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 14 | 15 | 93.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 12 | 0 | 70 | 47 | defined $hex and not ref $hex |
| 70 | 31 | 16 | defined $hex and not ref $hex and length $hex == 4 || length $hex == 7 | |
| 31 | 2 | 14 | defined $hex and not ref $hex and length $hex == 4 || length $hex == 7 and substr($hex, 0, 1) eq "#" | |
| 33 | 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 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 12 | 5 | 11 | 31 | length $hex == 4 || length $hex == 7 |