Branch Coverage

blib/lib/DBIx/QuickORM/Join.pm
Criterion Covered Total %
branch 23 50 46.0


line true false branch
34 0 2 unless $self->{'schema'}
35 0 2 unless $self->{'primary_source'}
65 2 13 unless $not_null
98 0 7 unless my $comp = $comps->{$as}
104 5 2 if ($link) { }
113 0 5 $type =~ /join/i ? :
129 0 0 if ($from)
130 0 0 unless my $c = $self->{'components'}{$from}
138 0 0 unless $t->has_field($field)
142 0 0 if $params{'no_fatal'}
198 0 3 if (my $comp = $self->{'components'}{$from})
202 3 0 if (my $as_set = $self->{'lookup'}{$from})
203 0 3 if @$as_set > 1
207 3 0 if (my $comp = $self->{'components'}{$as})
218 0 5 if @_ == 1
228 0 5 unless defined wantarray
237 0 5 if $self->{'components'}{$try}
241 0 5 if $self->{'components'}{$as}
243 3 2 if ($from and not $self->{'components'}{$from})
245 0 3 unless $check and @$check
246 0 3 if @$check > 1
250 2 3 unless ($from)
252 2 0 if ($lt eq $self->{'primary_source'}->name) { }
0 0 elsif (my $n = $self->{'lookup'}{$lt}) { }
256 0 0 if @$n > 1