Branch Coverage

blib/lib/DBIx/DataModel/Meta/Association.pm
Criterion Covered Total %
branch 33 48 68.7


line true false branch
60 0 60 if $assoc_end->{'join_cols'} and not @{$assoc_end->{'join_cols'};}
69 2 58 unless $self->{$_}{'role'}
74 2 28 if ($self->{'A'}{'multiplicity'}[1] > 1 and $self->{'B'}{'multiplicity'}[1] > 1) { }
83 2 26 if ($self->{'A'}{'multiplicity'}[1] > 1) { }
24 2 elsif ($self->{'B'}{'multiplicity'}[1] > 1) { }
93 0 28 unless @{$self->{'A'}{'join_cols'};} == @{$self->{'B'}{'join_cols'};}
101 13 17 if $self->{'kind'} eq "Composition"
105 0 0 unless $self->{'A'}{'role'} or $self->{'B'}{'role'}
106 28 2 if $self->{'B'}{'role'}
107 30 0 if $self->{'A'}{'role'}
131 0 60 if ref $assoc_end->{'multiplicity'}
134 0 60 unless $assoc_end->{'multiplicity'} =~ /^(?: # optional part (\d+) # minimum \s*\.\.\s* # followed by ".." )? # end of optional part (\d+|\*|n) # maximum $/x
145 30 28 $max_is_star ? :
2 58 defined $1 ? :
146 30 30 $max_is_star ? :
157 0 4 unless @path == 2
188 26 28 if ($self->{$to}{'multiplicity'}[1] > 1)
195 0 6 unless ref $source
201 2 10 unless ref $record
204 0 10 if grep {exists $record->{$_};} @$to_cols
228 0 13 unless $self->{'A'}{'multiplicity'}[1] == 1
230 0 13 unless $self->{'B'}{'multiplicity'}[1] > 1
234 13 0 unless $self->{'B'}{'table'}{'path'}
235 0 0 if ($path->association->kind eq "Composition" and $path->direction eq "BA" and ($path->multiplicity)[0] > 0)