Branch Coverage

blib/lib/Salvation/TC/Type/HashRef.pm
Criterion Covered Total %
branch 22 26 84.6


line true false branch
17 10 56 unless ref $value eq 'HASH'
30 0 13 if $$param{'positional'}
42 3 25 if ($@)
44 3 0 if (blessed $@ and $@->isa('Salvation::TC::Exception::WrongType')) { }
46 0 3 $@->isa('Salvation::TC::Exception::WrongType::TC') ? :
63 0 13 if (exists $checks{$$param{'name'}})
68 4 9 if ($$param{'optional'}) { }
72 4 4 if (exists $_[0]{$$param{'name'}})
83 1 19 unless exists $_[0]{$$param{'name'}}
98 6 12 if ($$options{'strict'})
103 4 6 unless (exists $checks{$key})
113 4 2 if ($@)
132 2 3 if ($len < $min or defined $max and $len > $max)