Branch Coverage

blib/lib/SQL/Maker.pm
Criterion Covered Total %
branch 73 98 74.4


line true false branch
20 0 1 $role =~ s/^\+// ? :
31 0 29 @_ == 1 ? :
32 0 29 unless ($args{'driver'})
36 18 11 unless (defined $args{'quote_char'})
38 10 8 if ($driver eq 'mysql') { }
45 0 29 $driver eq 'Oracle' ? :
67 0 84 @_ == 1 ? :
87 3 0 ref $values eq 'HASH' ? :
90 0 2 if (&Scalar::Util::blessed($val)) { }
91 0 0 if ($val->can('as_sql')) { }
99 0 2 if ref $val and $self->strict
101 0 2 if (ref $val eq 'SCALAR') { }
0 2 elsif (ref $val eq 'REF' and ref $$val eq 'ARRAY') { }
121 1 2 if ($self->driver eq 'SQLite' and @columns == 0)
145 4 12 if ($$opt{'using'})
148 2 2 ref $$opt{'using'} eq 'ARRAY' ? :
174 1 0 ref $args eq 'HASH' ? :
177 0 2 if (&Scalar::Util::blessed($val)) { }
178 0 0 if ($val->can('as_sql')) { }
186 0 2 if ref $val and $self->strict
188 0 2 if (ref $val eq 'SCALAR') { }
0 2 elsif (ref $val eq 'REF' and ref $$val eq 'ARRAY') { }
217 0 87 unless $where
218 9 78 if (&Scalar::Util::blessed($where) and $where->can('as_sql'))
223 19 59 ref $where eq 'ARRAY' ? :
233 3 13 unless $where
237 13 0 $sql ? :
249 0 81 unless (ref $fields eq 'ARRAY')
255 2 111 ref $field eq 'ARRAY' ? :
258 78 3 if (defined $table)
259 70 8 if (not ref $table) { }
266 8 6 ref $_ eq 'ARRAY' ? :
271 3 78 if $$opt{'prefix'}
273 74 7 if ($where)
277 3 78 if (my $joins = $$opt{'joins'})
279 3 0 ref $join eq 'ARRAY' ? :
283 27 54 if (my $o = $$opt{'order_by'})
284 6 21 if (ref $o eq 'ARRAY') { }
3 18 elsif (ref $o eq 'HASH') { }
286 3 9 if (ref $order eq 'HASH') { }
302 12 69 if (my $o = $$opt{'group_by'})
303 6 6 if (ref $o eq 'ARRAY') { }
3 3 elsif (ref $o eq 'HASH') { }
305 3 9 if (ref $group eq 'HASH') { }
321 3 78 if (my $o = $$opt{'index_hint'})
325 12 69 if defined $$opt{'limit'}
326 3 78 if $$opt{'offset'}
328 0 81 if (my $terms = $$opt{'having'})
334 0 81 if $$opt{'for_update'}