Branch Coverage

blib/lib/SQL/Maker/Condition.pm
Criterion Covered Total %
branch 52 56 92.8


line true false branch
15 3 159 if ref $label
21 0 185 @_ == 1 ? :
28 17 158 if (&Scalar::Util::blessed($val))
29 17 0 if ($val->can('as_sql')) { }
36 5 153 if ref $val and $$self{'strict'}
39 10 143 if (ref $val eq 'ARRAY') { }
19 124 elsif (ref $val eq 'HASH') { }
1 123 elsif (ref $val eq 'SCALAR') { }
2 121 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 119 2 if (defined $val) { }
112 5 10 if (@$v == 0) { }
113 3 2 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 238 0 wantarray ? :