Branch Coverage

blib/lib/Class/ReluctantORM/Relationship/HasOne.pm
Criterion Covered Total %
branch 0 98 0.0


line true false branch
174 0 0 ref $inv ? :
176 0 0 $rel ? :
204 0 0 if (@_ == 1) { }
207 0 0 if (@_ % 2)
214 0 0 unless ($raw_args{'class'})
226 0 0 ref $args{'local_key'} eq 'ARRAY' ? :
228 0 0 unless ($cro_base_class->field_name($key))
241 0 0 ref $args{'remote_key'} eq 'ARRAY' ? :
243 0 0 unless ($args{'class'}->field_name($key))
254 0 0 if (keys %raw_args)
275 0 0 if ($DEBUG > 1)
305 0 0 unless ($local_rel and $local_rel->is_has_one)
306 0 0 if ($local_rel->inverse_relationship)
316 0 0 unless (@remote_has_many_rels)
325 0 0 unless array_shallow_eq(\@remote_keys1, \@local_keys1)
331 0 0 unless array_shallow_eq(\@remote_keys2, \@local_keys2)
337 0 0 if (@matches == 1) { }
360 0 0 unless ($collection)
378 0 0 unless (defined $collection)
386 0 0 if (@_)
392 0 0 if (defined $raw_linked_object) { }
394 0 0 unless (blessed $raw_linked_object and $raw_linked_object->isa($rel->linked_class))
427 0 0 if ($collection->is_populated) { }
433 0 0 if ($rel->linked_class->is_static) { }
459 0 0 unless (defined $collection)
467 0 0 if (@newval)
471 0 0 if (defined $newval) { }
481 0 0 if ($collection->is_populated) { }
503 0 0 unless (defined $collection)
540 0 0 if ($rel_field_present)
542 0 0 if (ref $child_obj eq 'ARRAY')
561 0 0 if ($rel_field_present) { }
0 0 elsif ($all_keys_present) { }
566 0 0 if ($inverse_rel and $child_obj)
594 0 0 unless ($collection)
605 0 0 if ($Class::ReluctantORM::SOFT_TODO_MESSAGES)
616 0 0 unless defined $children_ref
624 0 0 if ($new_child->id eq $existing_child->id) { }
628 0 0 if ($existing_child->is_fetched($child_rel_name)) { }
0 0 elsif ($new_child->is_fetched($child_rel_name)) { }
629 0 0 if ($new_child->is_fetched($child_rel_name))
671 0 0 if (exists $args{$f})
674 0 0 unless (exists $args{$f})
680 0 0 if ($args{'children'}) { }
695 0 0 if ($self->is_populated) { }
706 0 0 unless ($object->isa($self->rel->linked_class))
721 0 0 if ($self->is_populated or defined $$self{'_count'}) { }
788 0 0 $crit ? :
809 0 0 unless $args{'execargs'}