| line |
true |
false |
branch |
|
28
|
1 |
3 |
unless (exists $self->{$key})
|
|
44
|
2 |
44 |
if _check_key($self, $key)
|
|
47
|
5 |
39 |
if (&any(sub {
|
|
52
|
2 |
37 |
if (@parts == 1) { }
|
|
|
23 |
14 |
elsif (@parts == 2) { }
|
|
57
|
17 |
6 |
if (&any(sub {
|
|
|
5 |
1 |
elsif (&any(sub {
|
|
62
|
4 |
1 |
if (&none(sub {
|
|
72
|
11 |
3 |
if (&none(sub {
|
|
85
|
2 |
6 |
if _check_key($self, $key)
|
|
87
|
1 |
5 |
if (not $self->{$key} =~ /^[a-zA-Z0-9\-_]+$/ms) { }
|
|
|
1 |
4 |
elsif ($self->{$key} =~ /^\d/ms) { }
|
|
103
|
2 |
32 |
if _check_key($self, $key)
|
|
113
|
2 |
21 |
if _check_key($self, $key)
|
|
123
|
6 |
7 |
if (not $alpha =~ /^[\d\.]+$/ms or $alpha > 1)
|
|
135
|
2 |
14 |
unless (defined $error_value)
|
|
139
|
2 |
14 |
if (&none(sub {
|
|
151
|
41 |
30 |
unless (defined $error_value)
|
|
156
|
13 |
58 |
if ($value =~ /^#(.*)$/ms) { }
|
|
|
48 |
10 |
elsif ($value =~ /^($funcs)\((.*)\)$/ms) { }
|
|
158
|
11 |
2 |
if (length $rgb == 3 or length $rgb == 6 or length $rgb == 8) { }
|
|
159
|
2 |
9 |
unless ($rgb =~ /^[0-9A-Fa-f]+$/ms)
|
|
173
|
9 |
39 |
if ($func eq 'rgb') { }
|
|
|
12 |
27 |
elsif ($func eq 'rgba') { }
|
|
|
15 |
12 |
elsif ($func eq 'hsl') { }
|
|
174
|
3 |
6 |
if (@args != 3)
|
|
181
|
3 |
9 |
if (@args != 4)
|
|
189
|
3 |
12 |
if (@args != 3)
|
|
198
|
3 |
9 |
if (@args != 4)
|
|
208
|
3 |
7 |
if (&none(sub {
|
|
222
|
6 |
39 |
if (not $i =~ /^\d+$/ms or $i > 255)
|
|
235
|
3 |
18 |
if (not $angle =~ /^\d+$/ms or $angle > 360)
|
|
247
|
8 |
103 |
unless (exists $self->{$key} and defined $self->{$key})
|
|
267
|
21 |
15 |
unless (defined $error_value)
|
|
272
|
3 |
33 |
unless ($num)
|
|
277
|
2 |
31 |
unless ($unit)
|
|
282
|
2 |
29 |
if (&none(sub {
|