Branch Coverage

blib/lib/Smart/Args/TypeTiny/Check.pm
Criterion Covered Total %
branch 33 34 97.0


line true false branch
22 77 18 if ($exists) { }
23 2 1 if not defined $value and $rule->{'optional'}
26 8 10 if (exists $rule->{'default'}) { }
6 4 elsif (not $rule->{'optional'}) { }
28 4 4 ref $default eq 'CODE' ? :
38 1 86 unless $type
39 64 22 if $type->check($value)
41 3 19 if ($type->has_coercion)
43 2 1 if ($type->check($value))
54 60 46 unless ref $rule eq 'HASH'
59 1 45 if (%check)
69 96 4 if (exists $rule->{'isa'}) { }
4 0 elsif (exists $rule->{'does'}) { }
71 73 23 if &blessed($isa)
72 10 13 if (my $type = $reg->simple_lookup($isa)) { }
85 1 3 if &blessed($does)
86 1 2 if (my $type = $reg->simple_lookup($does)) { }