Branch Coverage

lib/SQL/QueryBuilder/Flex.pm
Criterion Covered Total %
branch 50 88 56.8


line true false branch
18 23 1 if ($alias)
20 0 23 $alias =~ /::/ ? :
55 27 0 unless (ref $self)
61 0 54 if (ref $_ eq 'HASH') { }
83 0 0 unless (ref $self)
96 0 0 unless (ref $self)
111 0 0 if (ref $column) { }
128 1 3 $cond ? :
139 0 1 $cond ? :
169 2 2 scalar @_ == 2 ? :
238 1 51 if (ref $column)
240 1 0 if scalar @params
241 1 0 if $alias
243 27 25 $i == $last ? :
259 27 2 $i == $last ? :
260 1 28 if (ref $table) { }
266 25 3 $alias ? :
286 0 0 $i == $last ? :
287 0 0 if (ref $table) { }
293 0 0 $alias ? :
313 0 0 $i == $last ? :
314 0 0 $alias ? :
329 0 0 if (scalar @params)
331 0 0 if (ref $firstValue) { }
332 0 0 if scalar @params
340 0 0 $i == $last ? :
356 3 24 if ($$self{'where'} and not $$self{'where'}->is_empty)
365 1 26 if ($$self{'having'} and not $$self{'having'}->is_empty)
374 25 2 unless scalar @{$$self{'group_by'};}
380 3 1 $order ? :
390 25 2 unless scalar @{$$self{'order_by'};}
396 3 1 $order ? :
406 23 4 unless defined $$self{'limit'}
407 3 1 if (defined $$self{'offset'}) { }
423 27 0 if (scalar @{$$self{'from'};}) { }
0 0 elsif (scalar @{$$self{'update'};}) { }
502 2 3 if (ref $_) { }
504 2 0 if (defined $alias)
507 1 1 ref $name ? :
510 1 2 ref $name ? :
521 2 3 ref $name ? :
531 1 2 ref $name ? :
541 0 0 ref $name ? :
550 0 0 ref $name ? :