Branch Coverage

blib/lib/Smart/Args/TypeTiny/Check.pm
Criterion Covered Total %
branch 46 48 95.8


line true false branch
19 38 65 if (ref $rule eq 'HASH') { }
22 1 37 if (%check)
29 84 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 87 2 if (exists $rule->{'isa'}) { }
2 0 elsif (exists $rule->{'does'}) { }
50 22 67 unless ($ok)
61 15 10 if (ref $rule eq 'HASH') { }
64 1 14 if (%check)
71 17 7 if ($exists) { }
74 3 4 if (exists $rule->{'default'}) { }
2 2 elsif (not $rule->{'optional'}) { }
76 1 2 ref $default eq 'CODE' ? :
87 1 92 unless $type
88 66 26 if $type->check($value)
90 4 22 if ($type->has_coercion)
92 3 1 if ($type->check($coerced_value))
102 69 23 if builtin::blessed($type_name)
103 10 13 if (my $type = $reg->simple_lookup($type_name)) { }
118 0 3 if builtin::blessed($type_name)
119 1 2 if (my $type = $reg->simple_lookup($type_name)) { }