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
173 0 0 if (ref $criteria eq 'ARRAY')
176 0 0 if (my $link = $self->object_class->meta->link->{$search_field})
177 0 0 if ($self->schema->link($link->{'class'})->can('search')) { }
180 0 0 if (@results) { }
198 0 0 unless $options
202 0 0 if ($ids_only)
209 0 0 if ($objects) { }
211 0 0 if ($attribute->type_constraint and $attribute->type_constraint =~ /DateTime/)
226 0 0 if ($objects) { }
229 0 0 wantarray ? :
289 0 0 if ($ids->[0])
310 0 0 unless $field_info->{'type'} eq 'selection'
331 0 0 if (my $object = $self->schema->client->read_single($self->object_class->model, $id, $context, @args))
342 0 0 unless (@$args)
348 0 0 unless $name =~ /^_/
360 0 0 if ($context)
376 0 0 if ($attribute->type_constraint and $attribute->type_constraint =~ /DateTime/)
386 0 0 unless $string
440 0 0 if ($relation) { }
442 0 0 unless $relation->{'class'} eq 'DBIC'
473 0 0 if (my $objects = $self->schema->client->read($self->object_class->model, $ids, $context, @args))
475 0 0 if ($attribute->type_constraint and $attribute->type_constraint =~ /DateTime/)
482 0 0 if $inflate_objects
496 0 0 if ($rel->{'type'} eq 'one2many')
497 0 0 if ($object_data->{$name})
499 0 0 if $name ne $rel->{'key'}
503 0 0 if ($rel->{'type'} eq 'many2one')
504 0 0 if ($object_data->{$name})
506 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)