lib/DBIx/EAV/Entity.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 34 | 64 | 53.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
43 | 2 | 7 | 1 | $rel->{'is_has_many'} and $rel->{'is_right_entity'} |
152 | 1 | 120 | 6 | defined $value and exists $self->raw->{$attr_name} |
120 | 1 | 5 | defined $value and exists $self->raw->{$attr_name} and defined $self->raw->{$attr_name} | |
121 | 5 | 0 | defined $value and exists $self->raw->{$attr_name} and defined $self->raw->{$attr_name} and $value eq $self->raw->{$attr_name} | |
169 | 0 | 0 | 0 | &blessed($data) and $data->isa('DBIx::EAV::Entity') |
173 | 0 | 13 | 0 | ref $data eq 'ARRAY' and $rel->{'is_has_one'} || $rel->{'is_has_many'} && $rel->{'is_right_entity'} |
336 | 0 | 1 | 0 | $rel->{'is_has_many'} and $rel->{'is_right_entity'} |
347 | 0 | 1 | 0 | $rel->{'is_has_many'} and $rel->{'is_right_entity'} |
357 | 0 | 0 | 1 | &blessed($entity) and $entity->isa('DBIx::EAV::Entity') |
0 | 0 | 1 | &blessed($entity) and $entity->isa('DBIx::EAV::Entity') and $entity->is_type($related_type->name) | |
394 | 13 | 0 | 0 | exists $rel->{'cascade_delete'} and $rel->{'cascade_delete'} == 0 |
line | l | !l | condition |
---|---|---|---|
59 | 2 | 21 | $query //= {} |
278 | 1 | 13 | $options //= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
43 | 0 | 1 | 9 | $rel->{'is_has_one'} or $rel->{'is_has_many'} and $rel->{'is_right_entity'} |
119 | 0 | 0 | 88 | 1 > $numargs or $numargs > 2 |
169 | 0 | 13 | 0 | ref $data eq 'HASH' or ref $data eq 'ARRAY' |
13 | 0 | 0 | ref $data eq 'HASH' or ref $data eq 'ARRAY' or &blessed($data) and $data->isa('DBIx::EAV::Entity') | |
173 | 0 | 0 | 13 | $rel->{'is_has_one'} || $rel->{'is_has_many'} && $rel->{'is_right_entity'} |
336 | 0 | 0 | 1 | $rel->{'is_has_one'} or $rel->{'is_has_many'} and $rel->{'is_right_entity'} |
347 | 0 | 0 | 1 | $rel->{'is_has_one'} or $rel->{'is_has_many'} and $rel->{'is_right_entity'} |
394 | 13 | 4 | 13 | $rel->{'is_right_entity'} or $rel->{'is_many_to_many'} |
4 | 0 | 13 | $rel->{'is_right_entity'} or $rel->{'is_many_to_many'} or exists $rel->{'cascade_delete'} and $rel->{'cascade_delete'} == 0 |