Branch Coverage

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


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