Branch Coverage

blib/lib/SQL/Maker/Condition.pm
Criterion Covered Total %
branch 53 56 94.6


line true false branch
15 3 195 if ref $label
21 0 226 @_ == 1 ? :
28 25 186 if (&Scalar::Util::blessed($val))
29 23 2 if ($val->can('as_sql')) { }
37 5 32 if ref $val and $self->{'strict'}
39 10 171 if (ref $val eq 'ARRAY') { }
19 152 elsif (ref $val eq 'HASH') { }
1 151 elsif (ref $val eq 'SCALAR') { }
2 149 elsif (ref $val eq 'REF') { }
41 3 7 if (ref $val->[0] or ($val->[0] || '') eq '-and') { }
44 2 1 if ($val->[0] eq "-and")
67 8 11 if ($op eq 'IN' || $op eq 'NOT IN' and ref $v eq 'ARRAY') { }
3 8 elsif ($op eq 'IN' || $op eq 'NOT IN' and ref $v eq 'REF') { }
1 7 elsif ($op eq 'BETWEEN' and ref $v eq 'ARRAY') { }
77 0 1 if @$v != 2
81 1 6 if (ref $v eq 'SCALAR') { }
100 147 2 if (defined $val) { }
112 5 10 if (@$v == 0) { }
113 3 2 if ($op eq 'IN') { }
141 11 5 if (defined $bind)
142 5 6 ref $bind eq 'ARRAY' ? :
151 2 3 unless (@{$self->{'sql'};})
152 1 1 unless (@{$other->{'sql'};})
160 1 2 unless (@{$other->{'sql'};})
176 2 2 unless (@{$self->{'sql'};})
177 1 1 unless (@{$other->{'sql'};})
185 1 1 unless (@{$other->{'sql'};})
207 281 0 wantarray ? :