Branch Coverage

blib/lib/Class/DBI/Sweet/More.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
34 3 26 unless ($sql =~ /^\s*WHERE/i)
48 7 22 if $$attributes{'order_by'}
51 6 23 if ($$attributes{'rows'} and not $$attributes{'disable_sql_paging'})
57 0 6 if ($driver =~ /^(maxdb|mysql|mysqlpp)$/) { }
6 0 elsif ($driver =~ /^(pg|pgpp|sqlite|sqlite2)$/) { }
0 0 elsif ($driver =~ /^(interbase)$/) { }
90 27 2 unless $must_join
101 22 8 unless ref $val eq 'HASH'
102 7 1 unless exists $$val{'-and'} and ref $$val{'-and'} eq 'ARRAY'
105 0 1 unless $$meta{'has_many'}{$f_alias}
114 0 2 if ($match_col =~ /^(.+?)\.(.+)$/x)
126 29 0 if (@ret)
128 26 3 if $wh
140 17 3 unless $$joins{$join}{'join_type'}
167 29 0 wantarray ? :
179 2 18 if ($f_alias =~ /^(.+?)__\d+$/)
184 2 18 if ($rel = $$meta{'has_a'}{$f_alias}) { }
10 8 elsif ($rel = $$meta{'has_many'}{$f_alias}) { }
8 0 elsif ($rel = $$meta{'might_have'}{$f_alias}) { }