Branch Coverage

blib/lib/SQL/Concat.pm
Criterion Covered Total %
branch 34 44 77.2


line true false branch
26 4 6 unless defined $value
32 1 5 unless @items
33 5 0 unless my(@non_empty) = _nonempty(@items)
41 4 31 if (not defined $item && (ref $item || $item =~ /\S/)) { }
6 25 elsif (ref $item eq 'ARRAY') { }
9 16 elsif (ref $item and UNIVERSAL::can($item, 'is_empty') and $item->is_empty) { }
87 4 0 if (_nonempty($item)) { }
96 1 0 if (_nonempty($item)) { }
107 1 4 if $indent
113 0 8 ref $_[0] ? :
123 36 26 ref $_[0] ? :
124 0 62 if (defined $self->{'sql'})
130 1 102 unless defined $item
131 57 45 if (not ref $item) { }
135 23 22 if ref $item eq 'ARRAY'
157 45 0 $self->{'bind'} ? :
159 2 42 unless ($self->count_placeholders == $nbinds)
170 1 43 unless (defined $self->{'sql'})
179 15 1 if (wantarray) { }
188 1 1 if (wantarray) { }
199 0 0 if (ref $_[0])
202 0 0 if ($_[0] =~ /\`/)