Branch Coverage

blib/lib/OpenERP/OOM/Object/Base.pm
Criterion Covered Total %
branch 0 102 0.0


line true false branch
68 0 0 unless ($$obj{"_$name"})
79 0 0 if ($$obj{"_$name"}->can("_source"))
89 0 0 if ($_ eq 'single') { }
0 0 elsif ($_ eq 'multiple') { }
126 0 0 if (my $update = shift())
135 0 0 if $attribute eq "id"
136 0 0 if $attribute =~ /^_/
143 0 0 if ($$object{$rel->{'key'}})
148 0 0 if ($_ eq 'one2many') { }
0 0 elsif ($_ eq 'many2many') { }
157 0 0 if (exists $$object{$attribute->name})
200 0 0 if ($key)
203 0 0 if ($rel->{'type'} eq "many2many")
210 0 0 if ($attribute->name eq $property)
358 0 0 if (my $relation = $self->meta->relationship->{$relation_name}) { }
0 0 elsif ($relation = $self->meta->link->{$relation_name}) { }
362 0 0 if ($class =~ /(.*?)::(\w+)$/)
372 0 0 if ($value->{'class'} eq $name)
378 0 0 if ($far_end_relation) { }
394 0 0 unless (grep {$new_object->id;} @{$$self{$relation->{'key'}};})
404 0 0 if ($_ eq 'one2many') { }
0 0 elsif ($_ eq 'many2many') { }
0 0 elsif ($_ eq 'many2one') { }
423 0 0 if ($_ eq 'single') { }
0 0 elsif ($_ eq 'multiple') { }
431 0 0 if $created_obj
437 0 0 ref $val ? :
459 0 0 if (scalar @results > 1)
464 0 0 if (@results)
482 0 0 if (my $relation = $self->meta->relationship->{$relationship})
484 0 0 if $type eq "single" or $type eq "multiple"
510 0 0 if (my $relation = $self->meta->relationship->{$relation_name}) { }
0 0 elsif ($relation = $self->meta->link->{$relation_name}) { }
514 0 0 if ($class =~ /(.*?)::(\w+)$/)
522 0 0 if ($value->{'class'} eq $name)
528 0 0 if ($far_end_relation) { }
544 0 0 if ($_ eq 'one2many') { }
0 0 elsif ($_ eq 'many2many') { }
0 0 elsif ($_ eq 'many2one') { }
572 0 0 if (my $relation = $self->meta->relationship->{$relation_name}) { }
0 0 elsif ($relation = $self->meta->link->{$relation_name}) { }
577 0 0 if ($_ eq 'one2many') { }
0 0 elsif ($_ eq 'many2many') { }
585 0 0 if ($_ eq "multiple")
604 0 0 if (my $relation = $self->meta->relationship->{$relation_name}) { }
607 0 0 $object ? :
612 0 0 if ($object)
614 0 0 if (ref $object eq 'ARRAY') { }
626 0 0 if ($_ eq 'many2one') { }
0 0 elsif ($_ eq 'many2many') { }
714 0 0 if @rest