| 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 | 39 | 31 | defined $hex and not ref $hex |
| 39 | 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 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 12 | 5 | 11 | 15 | length $hex == 4 || length $hex == 7 |