Branch Coverage

blib/lib/MooseX/DataModel.pm
Criterion Covered Total %
branch 34 40 85.0


line true false branch
15 0 39 unless defined $properties{'isa'}
20 2 37 if $location
24 39 0 if (my $constraint = find_type_constraint($type)) { }
25 4 35 if ($constraint->isa('Moose::Meta::TypeConstraint::Class') and not $constraint->has_coercion && $constraint->coercion->has_coercion_for_type('HashRef'))
34 10 29 if ($constraint->has_coercion)
53 0 13 unless defined $properties{'isa'}
56 1 12 if $location
60 2 11 if (ref $properties{'isa'}) { }
62 0 2 unless defined $type
79 10 1 unless (defined $type)
87 5 8 if (defined $type_constraint and not $type_constraint->has_coercion)
93 12 1 unless (find_type_constraint($type_alias)->has_coercion)
111 0 11 unless defined $properties{'isa'}
114 1 10 if $location
118 2 9 if (ref $properties{'isa'}) { }
120 0 2 unless defined $type
138 8 1 unless (defined $type)
145 7 4 if (defined $type_constraint and not $type_constraint->has_coercion)
151 10 1 unless (find_type_constraint($type_alias)->has_coercion)
155 4 1 if ($type_c->has_coercion) { }