Branch Coverage

blib/lib/DBIx/Class/FormTools.pm
Criterion Covered Total %
branch 34 40 85.0


line true false branch
247 10 52 if (exists $relationships{$primary_key}) { }
252 25 27 ref $object && $object->$primary_key ? :
304 41 2 if ($attribute)
311 0 41 if not $value and $self->schema->storage->is_datatype_numeric($metadata->{'data_type'})
314 0 0 if not $value and exists $metadata->{'_ic_dt_method'}
387 11 39 $relationship_info && $relationship_info->{'attrs'}{'accessor'} eq 'single' ? :
17 50 $relationship_info && $relationship_info->{'attrs'}{'accessor'} eq 'filter' ? :
408 28 1 if (exists $self->_formdata->{$oid}) { }
418 2 27 unless $attributes
422 9 3 if $self->_objects->{$class} and $self->_objects->{$class}{$oid}
441 13 26 if $foreign_relation_type eq 'multi'
449 6 20 exists $self->_formdata->{$oid}{'form_id'}{$real_foreign_accessor} ? :
456 16 10 unless $foreign_oid
467 6 4 if exists $id->{$foreign_accessor}
481 20 0 unless ($object)
485 19 4 if defined $id->{$_}
10 10 unless grep {$id->{$_} eq 'new' if defined $id->{$_};} $source->primary_columns
489 13 7 unless ($object)
496 20 0 if $object and $attributes
499 20 0 if ($id and $object)