| line |
true |
false |
branch |
|
19
|
39 |
59 |
if (ref $rule eq 'HASH') { } |
|
22
|
1 |
38 |
if (%check) |
|
29
|
79 |
18 |
if ($exists) { } |
|
30
|
3 |
2 |
if not defined $value and $rule->{'optional'} |
|
32
|
8 |
10 |
if (exists $rule->{'default'}) { } |
|
|
6 |
4 |
elsif (not $rule->{'optional'}) { } |
|
34
|
4 |
4 |
ref $default eq 'CODE' ? : |
|
43
|
82 |
2 |
if (exists $rule->{'isa'}) { } |
|
|
2 |
0 |
elsif (exists $rule->{'does'}) { } |
|
50
|
20 |
64 |
unless ($ok) |
|
59
|
1 |
87 |
unless $type |
|
60
|
64 |
23 |
if $type->check($value) |
|
62
|
3 |
20 |
if ($type->has_coercion) |
|
64
|
2 |
1 |
if ($type->check($coerced_value)) |
|
74
|
63 |
23 |
if &blessed($type_name) |
|
75
|
10 |
13 |
if (my $type = $reg->simple_lookup($type_name)) { } |
|
90
|
1 |
3 |
if &blessed($type_name) |
|
91
|
1 |
2 |
if (my $type = $reg->simple_lookup($type_name)) { } |