Branch Coverage

blib/lib/Type/Tie.pm
Criterion Covered Total %
branch 26 40 65.0


line true false branch
25 4 9 if (ref $ref eq 'HASH') { }
4 5 elsif (ref $ref eq 'ARRAY') { }
28 3 1 if @vals
33 3 1 if @vals
38 4 1 if @vals
69 10 6 if ($type->isa('Type::Tiny')) { }
73 2 8 if $type->has_coercion
80 0 6 $type->can('compiled_check') ? :
83 2 0 if $type->can('has_coercion') and $type->can('coerce') and $type->has_coercion
97 0 0 @_ ? :
100 0 0 !ref($value) ? :
0 0 !defined($value) ? :
118 40 35 $coerce ? :
119 18 57 unless (&$check($val))
121 18 0 $type && $type->can('get_message') ? :
130 39 0 wantarray ? :
141 0 3 unless eval { do { require Scalar::Util } }
145 0 3 unless $cloning
161 0 3 unless $cloning
168 3 0 unless --$tmp_clone_types{$refaddr}[1]