Branch Coverage

blib/lib/Type/Tie.pm
Criterion Covered Total %
branch 33 42 78.5


line true false branch
24 5 12 if ('HASH' eq ref $ref) { }
5 7 elsif ('ARRAY' eq ref $ref) { }
79 23 4 if (builtin::blessed($type) and $type->isa('Type::Tiny')) { }
81 2 21 $type->has_coercion ? :
92 0 4 $type->can('compiled_check') ? :
97 2 2 $type->can('has_coercion') && $type->can('coerce') && $type->has_coercion ? :
113 40 62 $coerce ? :
114 26 76 unless (&$check($val))
116 25 1 $type && $type->can('get_message') ? :
125 23 34 if (wantarray) { }
136 0 3 unless $cloning
149 0 3 unless $cloning
156 3 0 unless --$tmp_clone_types{$refaddr}[1]
174 4 3 if (@_)
196 2 0 @_ ? :
197 0 2 if $off < 0
198 2 0 @_ ? :
217 4 3 if (@_)
252 6 4 if (@_) { }
4 0 elsif ($type->can('type_default') and my $d = $type->type_default) { }
253 0 6 if @_ > 1