Branch Coverage

blib/lib/SQL/Abstract/Plugin/TableAlias.pm
Criterion Covered Total %
branch 51 66 77.2


line true false branch
17 31 0 if ref $args eq "HASH" and ref $args->{'from'} eq "ARRAY"
29 26 70 if ($ref eq 'HASH') { }
3 67 elsif ($ref eq 'ARRAY') { }
38 29 elsif (not $ref || $from =~ /^-/) { }
30 26 0 if ($from->{'to'}) { }
31 1 12 ref $from->{'to'} ? :
13 13 scalar @{$args->{'talias'};} ? :
33 26 0 if ($from->{'on'})
34 2 24 if ($from->{'on'}{'-op'}) { }
35 2 0 if (scalar @{$from->{'on'}{'-op'}[1]{'-ident'};} == 1)
38 2 0 if (scalar @{$from->{'on'}{'-op'}[2]{'-ident'};} == 1)
43 24 0 if (ref $from->{'on'}{$on})
57 0 3 if ($from->[1] eq 'as') { }
74 31 0 if (ref $args->{'select'} || '') eq "ARRAY"
77 5 26 $where eq 'HASH' ? :
86 6 24 $order_by eq 'ARRAY' ? :
1 30 $order_by eq 'HASH' ? :
89 5 26 $group_by eq 'ARRAY' ? :
101 33 89 if ($ref eq 'ARRAY') { }
2 87 elsif ($ref eq 'HASH') { }
87 0 elsif (not $ref) { }
104 1 43 if (ref $sel->[$l] or !1) { }
117 1 0 if $i < 0 or $last_array and do { $last_array = 0; 1 }
124 31 0 if $i < 0 or $last_array and do { $last_array = 0; 1 }
137 0 39 if (ref $args->{$w} eq 'HASH' and $args->{$w}{'-alias'}) { }
149 8 14 if $_ % 2 > 0
150 0 6 if $list
153 12 4 if ($ref eq "HASH")
166 5 4 if ($ref eq 'ARRAY') { }
4 0 elsif (not $ref) { }
185 8 8 if ($ref eq 'HASH') { }
217 4 0 ref $group->{'-ident'} ? :
226 1 92 if $column =~ /[^.]+\W+/