| lib/Graphics/Toolkit/Color/Space/Instance/RGB.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 4 | 4 | 100.0 |
| line | true | false | branch |
|---|---|---|---|
| 12 | 4 | 12 | unless defined $hex and not ref $hex and length $hex == 4 || length $hex == 7 and substr($hex, 0, 1) eq "#" and $hex =~ /^#[\da-f]+$/iu |
| 19 | 3 | 9 | length $hex == 3 ? : |