Branch Coverage

lib/DBIx/EAV/EntityType.pm
Criterion Covered Total %
branch 52 68 76.4


line true false branch
27 0 4 if ref $class
50 0 6 unless $self->has_parent
63 46 5 if $self->name eq $type
65 5 1 if $parent->name eq $type
75 130 31 if exists $self->_attributes->{$name} or exists $self->_static_attributes->{$name}
76 19 12 unless $self->has_parent
80 11 5 if $parent->has_own_attribute($name)
94 5 14 unless exists $self->_attributes->{$name}
99 0 5 unless $self->has_parent
102 5 0 if exists $parent->_attributes->{$name}
113 662 120 if exists $self->_attributes->{$name}
116 7 113 if exists $self->_static_attributes->{$name}
122 113 55 if exists $parent->_attributes->{$name}
136 1 117 unless $options{'no_static'}
140 118 0 unless $options{'no_own'}
143 118 0 unless ($options{'no_inherited'})
152 113 5 $options{'names'} ? :
165 85 494 if exists $self->_relationships->{$name}
166 435 59 unless $self->has_parent
170 8 80 if $parent->has_own_relationship($name)
182 142 15 if exists $self->_relationships->{$name}
188 15 0 if exists $parent->_relationships->{$name}
203 24 0 unless ($options{'no_inherited'})
212 0 24 $options{'names'} ? :
220 26 8 unless ref $params
223 8 26 if (ref $params eq 'ARRAY')
233 0 34 unless $params->{'entity'}
237 18 8 $reltype =~ /_many$/ ? :
240 10 16 $reltype eq 'many_to_many' ? :
258 0 34 if ($existing_rel) { }
268 0 0 if keys %changed_cols > 0
273 0 34 unless $id
286 0 38 if $self->has_relationship($relname)
299 0 38 if $other_entity->has_relationship($rel->{'incoming_name'})