Branch Coverage

blib/lib/SQL/Maker/Condition.pm
Criterion Covered Total %
branch 37 56 66.0


line true false branch
15 3 120 if ref $label
21 0 143 @_ == 1 ? :
28 0 126 if (&Scalar::Util::blessed($val))
29 0 0 if ($val->can('as_sql')) { }
36 0 126 if ref $val and $$self{'strict'}
39 5 121 if (ref $val eq 'ARRAY') { }
6 115 elsif (ref $val eq 'HASH') { }
0 115 elsif (ref $val eq 'SCALAR') { }
0 115 elsif (ref $val eq 'REF') { }
41 0 5 if (ref $$val[0] or ($$val[0] || '') eq '-and') { }
44 0 0 if ($$val[0] eq '-and')
67 4 2 if ($op eq 'IN' || $op eq 'NOT IN' and ref $v eq 'ARRAY') { }
2 0 elsif ($op eq 'IN' || $op eq 'NOT IN' and ref $v eq 'REF') { }
0 0 elsif ($op eq 'BETWEEN' and ref $v eq 'ARRAY') { }
77 0 0 if @$v != 2
81 0 0 if (ref $v eq 'SCALAR') { }
100 115 0 if (defined $val) { }
112 3 6 if (@$v == 0) { }
113 2 1 if ($op eq 'IN') { }
141 8 4 if (defined $bind)
142 4 4 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 201 0 wantarray ? :