Branch Coverage

blib/lib/SQL/Maker.pm
Criterion Covered Total %
branch 92 104 88.4


line true false branch
20 0 2 $role =~ s/^\+// ? :
31 0 56 @_ == 1 ? :
32 0 56 unless ($args{'driver'})
36 41 15 unless (defined $args{'quote_char'})
38 25 16 if ($driver eq 'mysql') { }
45 0 56 $driver eq 'Oracle' ? :
67 0 96 @_ == 1 ? :
87 9 6 ref $values eq 'HASH' ? :
90 9 41 if (&Scalar::Util::blessed($val)) { }
91 5 4 if ($val->can('as_sql')) { }
99 1 40 if ref $val and $self->strict
101 8 32 if (ref $val eq 'SCALAR') { }
8 24 elsif (ref $val eq 'REF' and ref $$val eq 'ARRAY') { }
121 1 13 if ($self->driver eq "SQLite" and @columns == 0)
145 4 16 if ($opt->{'using'})
148 2 2 ref $opt->{'using'} eq 'ARRAY' ? :
174 15 22 ref $args eq 'HASH' ? :
177 14 69 if (&Scalar::Util::blessed($val)) { }
178 7 7 if ($val->can('as_sql')) { }
186 1 68 if ref $val and $self->strict
188 6 62 if (ref $val eq 'SCALAR') { }
5 57 elsif (ref $val eq 'REF' and ref $$val eq 'ARRAY') { }
217 0 132 unless $where
218 33 99 if (&Scalar::Util::blessed($where) and $where->can("as_sql"))
223 28 71 ref $where eq 'ARRAY' ? :
233 12 41 unless $where
237 39 0 $sql ? :
249 0 92 unless (ref $fields eq "ARRAY")
255 5 125 ref $field eq 'ARRAY' ? :
258 87 5 if (defined $table)
259 8 79 if (ref $table) { }
266 8 6 ref $_ eq 'ARRAY' ? :
271 3 89 if $opt->{'prefix'}
273 82 10 if ($where)
277 5 86 if (my $joins = $opt->{'joins'})
279 5 0 ref $join eq 'ARRAY' ? :
283 27 64 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 79 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 5 86 if (my $o = $opt->{'index_hint'})
322 3 2 if (defined $table) { }
2 0 elsif (my $joins = $opt->{'joins'}) { }
326 1 1 ref $joins->[0][0] eq 'ARRAY' ? :
331 12 79 if defined $opt->{'limit'}
332 3 88 if $opt->{'offset'}
334 0 91 if (my $terms = $opt->{'having'})
340 0 91 if $opt->{'for_update'}