Branch Coverage

blib/lib/DCI/Meta/Cast.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
42 5 24 if $existing
44 13 11 unless blessed $self
48 1 10 unless ($sub)
49 1 0 if grep {/^$name$/;} 'DESTROY', 'import', 'unimport'
75 0 26 if $target->can($accessor)
81 0 3 unless blessed $self
85 0 3 if @_
100 1 64 unless blessed $cast
106 1 63 unless ($sub)
133 0 6 if $type and $type ne 'ARRAY'
136 0 6 $type ? :
143 0 6 unless $type and $type eq 'CODE'