Branch Coverage

blib/lib/Type/Alias.pm
Criterion Covered Total %
branch 26 26 100.0


line true false branch
47 1 15 if ($target_package->can($type_name))
67 1 16 if ($target_package->can($alias_name))
83 1 4 if ($target_package->can($type_function))
97 86 35 if (&blessed($v)) { }
23 12 elsif (ref $v) { }
111 84 2 if ($v->can('check') and $v->can('get_message')) { }
122 8 15 if (ref $v eq 'ARRAY') { }
9 6 elsif (ref $v eq 'HASH') { }
5 1 elsif (ref $v eq 'CODE') { }
133 18 5 if (@_)
134 1 17 unless (@_ == 1 and ref $_[0] eq "ARRAY")
166 1 11 if (not defined $v) { }
178 4 21 if ((ref $type_args || '') eq 'CODE') { }