Branch Coverage

blib/lib/OpenERP/OOM/Class/Base.pm
Criterion Covered Total %
branch 0 82 0.0


line true false branch
51 0 0 unless $self->can("object")
158 0 0 wantarray ? :
0 0 unless defined $ids and ref $ids eq "ARRAY" and scalar @$ids >= 1
172 0 0 if (ref $criteria eq "ARRAY")
175 0 0 if (my $link = $self->object_class->meta->link->{$search_field})
176 0 0 if ($self->schema->link($link->{'class'})->can('search')) { }
179 0 0 if (@results) { }
196 0 0 unless $options
200 0 0 if ($ids_only)
207 0 0 if ($objects) { }
209 0 0 if ($attribute->type_constraint and $attribute->type_constraint =~ /DateTime/)
224 0 0 if ($objects) { }
227 0 0 wantarray ? :
287 0 0 if ($ids->[0])
308 0 0 unless $field_info->{'type'} eq "selection"
329 0 0 if (my $object = $self->schema->client->read_single($self->object_class->model, $id, $context, @args))
340 0 0 unless (@$args)
346 0 0 unless $name =~ /^_/
358 0 0 if ($context)
374 0 0 if ($attribute->type_constraint and $attribute->type_constraint =~ /DateTime/)
384 0 0 unless $string
438 0 0 if ($relation) { }
440 0 0 unless $relation->{'class'} eq "DBIC"
471 0 0 if (my $objects = $self->schema->client->read($self->object_class->model, $ids, $context, @args))
473 0 0 if ($attribute->type_constraint and $attribute->type_constraint =~ /DateTime/)
480 0 0 if $inflate_objects
494 0 0 if ($rel->{'type'} eq "one2many")
495 0 0 if ($object_data->{$name})
497 0 0 if $name ne $rel->{'key'}
501 0 0 if ($rel->{'type'} eq "many2one")
502 0 0 if ($object_data->{$name})
505 0 0 if ($name ne $rel->{'key'})
509 0 0 if ($rel->{'type'} eq "many2many")
510 0 0 if ($object_data->{$name})
513 0 0 if (ref $val eq 'ARRAY') { }
525 0 0 if $name ne $rel->{'key'}
531 0 0 if (exists $$object_data{$attribute->name})
544 0 0 if ($ref)
548 0 0 if ($ref eq 'HASH') { }
0 0 elsif ($ref eq 'ARRAY') { }
597 0 0 if ($id)