Branch Coverage

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


line true false branch
60 0 64 if $assoc_end->{'join_cols'} and not @{$assoc_end->{'join_cols'};}
69 2 62 unless $self->{$_}{'role'}
74 2 30 if ($self->{'A'}{'multiplicity'}[1] > 1 and $self->{'B'}{'multiplicity'}[1] > 1) { }
83 2 28 if ($self->{'A'}{'multiplicity'}[1] > 1) { }
26 2 elsif ($self->{'B'}{'multiplicity'}[1] > 1) { }
93 0 30 unless @{$self->{'A'}{'join_cols'};} == @{$self->{'B'}{'join_cols'};}
101 14 18 if $self->{'kind'} eq "Composition"
105 0 0 unless $self->{'A'}{'role'} or $self->{'B'}{'role'}
106 30 2 if $self->{'B'}{'role'}
107 32 0 if $self->{'A'}{'role'}
131 0 64 if ref $assoc_end->{'multiplicity'}
134 0 64 unless $assoc_end->{'multiplicity'} =~ /^(?: # optional part (\d+) # minimum \s*\.\.\s* # followed by ".." )? # end of optional part (\d+|\*|n) # maximum $/x
145 32 30 $max_is_star ? :
2 62 defined $1 ? :
146 32 32 $max_is_star ? :
157 0 4 unless @path == 2
188 28 30 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 14 unless $self->{'A'}{'multiplicity'}[1] == 1
230 0 14 unless $self->{'B'}{'multiplicity'}[1] > 1
234 14 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)