Branch Coverage

blib/lib/DBIx/Class/ResultSource/FromSpec/Util.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
26 0 9055 if $colnames and not @$colnames
44 13299 15 $_->{'-rsrc'} && $_->{'-alias'} ? :
49 10149 0 ref $_ eq 'HASH' ? :
3165 10149 ref $_ eq 'ARRAY' && ref $_->[0] eq 'HASH' ? :
1 9054 ref $fromspec ne 'ARRAY' ? :
0 9055 &blessed($fromspec) && $fromspec->isa('DBIx::Class::ResultSource') ? :
100 0 128347 unless $seen_cols{$colname}{$assumed_alias}
110 60796 67551 unless $source_alias
127 0 248 if ref $fromspec ne 'ARRAY' or ref $fromspec->[0] ne 'HASH' or not defined $fromspec->[0]{'-alias'}
130 41 207 if $fromspec->[0]{'-alias'} eq $target_alias
133 207 57 if ($fromspec->[$i][0]{'-alias'} || '') eq $target_alias