Branch Coverage

lib/SQL/Concat.pm
Criterion Covered Total %
branch 57 72 79.1


line true false branch
24 30 0 if defined $self->{'sql'}
29 3 5 $swap ? :
46 1 11 if (not defined $other) { }
6 5 elsif (not ref $other) { }
50 6 0 if @$myBind == 0
53 3 2 ref $other eq 'ARRAY' ? :
56 5 0 if ($self->{'sql'} // "") eq ($otherSQL // "")
64 1 4 unless @$la == @$ra
66 1 1 if (not defined $la->[$i] || defined $ra->[$i]) { }
0 1 elsif (not defined $la->[$i] xor not defined $ra->[$i]) { }
0 1 elsif ($la->[$i] ne $ra->[$i]) { }
89 13 10 @_ ? :
112 5 0 wantarray ? :
5 7 unless defined $value
118 6 1 wantarray ? :
6 2 @items ? :
7 1 unless my(@non_empty) = @items ? _nonempty(@items) : ()
126 4 48 if (not defined $item && (ref $item || $item =~ /\S/)) { }
6 42 elsif (ref $item eq 'ARRAY') { }
14 28 elsif (ref $item and UNIVERSAL::can($item, 'is_empty') and $item->is_empty) { }
172 4 0 if (_nonempty($item)) { }
181 1 0 if (_nonempty($item)) { }
192 1 4 if $indent
198 0 8 ref $_[0] ? :
208 71 26 ref $_[0] ? :
209 0 97 if (defined $self->{'sql'})
215 1 130 unless defined $item
216 64 66 if (not ref $item) { }
220 38 28 if ref $item eq "ARRAY"
242 66 0 $self->{'bind'} ? :
244 2 63 unless ($self->count_placeholders == $nbinds)
255 1 64 unless (defined $self->{'sql'})
264 23 1 if (wantarray) { }
273 1 1 if (wantarray) { }
284 0 0 if (ref $_[0])
287 0 0 if ($_[0] =~ /\`/)