line |
true |
false |
branch |
174
|
66 |
132 |
unless defined $allow_empty |
175
|
0 |
198 |
unless scalar keys %args == 0 |
179
|
126 |
72 |
if not defined $variable or ref $variable |
182
|
3 |
69 |
if not $allow_empty and length $variable == 0 |
241
|
264 |
132 |
unless defined $allow_empty |
244
|
0 |
396 |
if defined $element_validate_type and not is_coderef($element_validate_type) |
246
|
0 |
396 |
unless scalar keys %args == 0 |
250
|
162 |
234 |
unless defined $variable and ref $variable |
252
|
39 |
195 |
if ($no_blessing) { } |
255
|
27 |
12 |
if ref $variable ne 'ARRAY' |
261
|
120 |
75 |
unless &Scalar::Util::reftype($variable) eq 'ARRAY' or overload::Method($variable, '@{}') |
269
|
3 |
84 |
if not $allow_empty and scalar @$variable == 0 |
273
|
15 |
69 |
if (defined $element_validate_type) |
277
|
9 |
15 |
unless &$element_validate_type($element) |
320
|
222 |
132 |
unless defined $allow_empty |
322
|
0 |
354 |
unless scalar keys %args == 0 |
326
|
141 |
213 |
unless defined $variable and ref $variable |
328
|
39 |
174 |
if ($no_blessing) { } |
331
|
33 |
6 |
if ref $variable ne 'HASH' |
337
|
123 |
51 |
unless &Scalar::Util::reftype($variable) eq 'HASH' or overload::Method($variable, '%{}') |
345
|
3 |
54 |
if not $allow_empty and scalar keys %$variable == 0 |
365
|
0 |
132 |
unless scalar keys %args == 0 |
369
|
27 |
105 |
unless defined $variable and ref $variable |
370
|
36 |
69 |
if ref $variable ne 'CODE' |
413
|
0 |
330 |
unless scalar keys %args == 0 |
417
|
210 |
120 |
if not defined $variable or ref $variable |
420
|
30 |
90 |
unless &Scalar::Util::looks_like_number($variable) |
423
|
6 |
84 |
if $positive and $variable < 0 |
424
|
9 |
75 |
if $strictly_positive and $variable <= 0 |
460
|
2 |
200 |
if not defined $class or $class eq '' |
462
|
0 |
200 |
unless scalar keys %args == 0 |
466
|
162 |
38 |
unless defined $variable and &Scalar::Util::blessed($variable) |
469
|
30 |
8 |
unless $variable->isa($class) |
488
|
6 |
60 |
defined $variable && ref $variable eq 'Regexp' ? : |
529
|
43 |
23 |
unless is_string($variable, %args) |
587
|
107 |
25 |
unless is_arrayref($variable, %args) |
626
|
97 |
13 |
unless is_hashref($variable, %args) |
646
|
21 |
1 |
unless is_coderef($variable, %args) |
687
|
85 |
25 |
unless is_number($variable, %args) |
722
|
64 |
2 |
unless is_instance($variable, %args) |
741
|
20 |
2 |
unless is_regex($variable) |
783
|
23 |
43 |
is_string($variable, %args) ? : |
840
|
25 |
107 |
is_arrayref($variable, %args) ? : |
879
|
13 |
97 |
is_hashref($variable, %args) ? : |
898
|
1 |
21 |
is_coderef($variable, %args) ? : |
938
|
25 |
85 |
is_number($variable, %args) ? : |
972
|
2 |
64 |
is_instance($variable, %args) ? : |
990
|
2 |
20 |
is_regex($variable) ? : |