blib/lib/DBIx/Class/ResultSource/FromSpec/Util.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 18 | 30 | 60.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
26 | 9025 | 30 | 0 | $colnames and not @$colnames |
44 | 15 | 0 | 13299 | $_->{'-rsrc'} && $_->{'-alias'} |
49 | 9055 | 0 | 0 | &blessed($fromspec) && $fromspec->isa('DBIx::Class::ResultSource') |
10149 | 0 | 3165 | ref $_ eq 'ARRAY' && ref $_->[0] eq 'HASH' | |
71 | 0 | 198 | 67541 | ++$seen_cols{$_}{$alias} and not $colnames |
198 | 67541 | 0 | ++$seen_cols{$_}{$alias} and not $colnames and push @auto_colnames, "$alias.$_" |
line | l | !l | condition |
---|---|---|---|
76 | 30 | 9024 | $colnames ||= [@auto_colnames, grep({keys %{$seen_cols{$_};} == 1;} keys %seen_cols)] |
92 | 60796 | 18 | $source_alias || $seen_cols{$colname} && keys %{$seen_cols{$colname};} == 1 && (%{$seen_cols{$colname};})[0] || (next) |
133 | 264 | 0 | $fromspec->[$i][0]{'-alias'} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
127 | 0 | 0 | 248 | ref $fromspec ne 'ARRAY' or ref $fromspec->[0] ne 'HASH' |
0 | 0 | 248 | ref $fromspec ne 'ARRAY' or ref $fromspec->[0] ne 'HASH' or not defined $fromspec->[0]{'-alias'} |