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})
190 0 0 if ($key)
193 0 0 if ($rel->{'type'} eq 'many2many')
200 0 0 if ($attribute->name eq $property)
348 0 0 if (my $relation = $self->meta->relationship->{$relation_name}) { }
0 0 elsif ($relation = $self->meta->link->{$relation_name}) { }
352 0 0 if ($class =~ /(.*?)::(\w+)$/)
362 0 0 if ($value->{'class'} eq $name)
368 0 0 if ($far_end_relation) { }
384 0 0 unless (grep {$new_object->id;} @{$$self{$relation->{'key'}};})
394 0 0 if ($_ eq 'one2many') { }
0 0 elsif ($_ eq 'many2many') { }
0 0 elsif ($_ eq 'many2one') { }
413 0 0 if ($_ eq 'single') { }
0 0 elsif ($_ eq 'multiple') { }
421 0 0 if $created_obj
427 0 0 ref $val ? :
449 0 0 if (scalar @results > 1)
454 0 0 if (@results)
472 0 0 if (my $relation = $self->meta->relationship->{$relationship})
474 0 0 if $type eq 'single' or $type eq 'multiple'
500 0 0 if (my $relation = $self->meta->relationship->{$relation_name}) { }
0 0 elsif ($relation = $self->meta->link->{$relation_name}) { }
504 0 0 if ($class =~ /(.*?)::(\w+)$/)
512 0 0 if ($value->{'class'} eq $name)
518 0 0 if ($far_end_relation) { }
534 0 0 if ($_ eq 'one2many') { }
0 0 elsif ($_ eq 'many2many') { }
0 0 elsif ($_ eq 'many2one') { }
562 0 0 if (my $relation = $self->meta->relationship->{$relation_name}) { }
0 0 elsif ($relation = $self->meta->link->{$relation_name}) { }
567 0 0 if ($_ eq 'one2many') { }
0 0 elsif ($_ eq 'many2many') { }
575 0 0 if ($_ eq 'multiple')
594 0 0 if (my $relation = $self->meta->relationship->{$relation_name}) { }
597 0 0 $object ? :
602 0 0 if ($object)
604 0 0 if (ref $object eq 'ARRAY') { }
616 0 0 if ($_ eq 'many2one') { }
0 0 elsif ($_ eq 'many2many') { }
704 0 0 if @rest