Branch Coverage

blib/lib/DBIx/Class/Relationship/BelongsTo.pm
Criterion Covered Total %
branch 21 24 87.5


line true false branch
22 13443 325 unless exists $attrs->{'is_foreign_key_constraint'}
24 13432 336 unless exists $attrs->{'undef_on_null_fk'}
27 8519 5249 if (not ref $cond) { }
30 5896 2623 if (defined $cond and length $cond) { }
39 0 8519 unless $class->has_column($f_key)
61 3936 1313 if (ref $cond eq 'HASH')
66 3935 1 if (/\./)
76 5559 8209 ref $cond eq 'HASH' && keys %$cond == 1 && (keys %$cond)[0] =~ /^foreign\./ && $class->has_column($rel) ? :
87 8521 0 $_ =~ /^self\.(.+)/ ? :
6896 6872 $acc_type eq 'single' && ref $cond eq 'HASH' ? :
97 6896 6872 $fk_columns ? :
0 13768 unless $attrs