Branch Coverage

blib/lib/SQL/Maker.pm
Criterion Covered Total %
branch 77 98 78.5


line true false branch
20 0 1 $role =~ s/^\+// ? :
31 0 30 @_ == 1 ? :
32 0 30 unless ($args{'driver'})
36 19 11 unless (defined $args{'quote_char'})
38 10 9 if ($driver eq 'mysql') { }
45 0 30 $driver eq 'Oracle' ? :
67 0 87 @_ == 1 ? :
87 3 1 ref $values eq 'HASH' ? :
90 0 4 if (&Scalar::Util::blessed($val)) { }
91 0 0 if ($val->can('as_sql')) { }
99 1 3 if ref $val and $self->strict
101 0 3 if (ref $val eq 'SCALAR') { }
0 3 elsif (ref $val eq 'REF' and ref $$val eq 'ARRAY') { }
121 1 2 if ($self->driver eq 'SQLite' and @columns == 0)
145 4 14 if ($$opt{'using'})
148 2 2 ref $$opt{'using'} eq 'ARRAY' ? :
174 1 2 ref $args eq 'HASH' ? :
177 0 4 if (&Scalar::Util::blessed($val)) { }
178 0 0 if ($val->can('as_sql')) { }
186 1 3 if ref $val and $self->strict
188 0 3 if (ref $val eq 'SCALAR') { }
0 3 elsif (ref $val eq 'REF' and ref $$val eq 'ARRAY') { }
217 0 93 unless $where
218 12 81 if (&Scalar::Util::blessed($where) and $where->can('as_sql'))
223 20 61 ref $where eq 'ARRAY' ? :
233 3 17 unless $where
237 15 0 $sql ? :
249 0 83 unless (ref $fields eq 'ARRAY')
255 2 113 ref $field eq 'ARRAY' ? :
258 80 3 if (defined $table)
259 72 8 if (not ref $table) { }
266 8 6 ref $_ eq 'ARRAY' ? :
271 3 80 if $$opt{'prefix'}
273 76 7 if ($where)
277 3 79 if (my $joins = $$opt{'joins'})
279 3 0 ref $join eq 'ARRAY' ? :
283 27 55 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 70 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 79 if (my $o = $$opt{'index_hint'})
325 12 70 if defined $$opt{'limit'}
326 3 79 if $$opt{'offset'}
328 0 82 if (my $terms = $$opt{'having'})
334 0 82 if $$opt{'for_update'}