Branch Coverage

blib/lib/SQL/Abstract/Pg.pm
Criterion Covered Total %
branch 47 48 97.9


line true false branch
15 7 2 if exists $options->{'on_conflict'} and not $options->{'returning'}
34 7 1 if $options->{'_pg_returning'}
39 8 0 if (exists $options->{'on_conflict'})
46 1 2 unless ref $set eq 'HASH'
47 1 1 unless ref $target eq 'ARRAY'
64 1 5 if $options->{'returning'}
73 2 11 if ref $options ne 'HASH' or grep {/^-(?:desc|asc)/i;} keys %$options
78 5 6 if (defined(my $group = $options->{'group_by'}))
92 2 8 if (defined(my $having = $options->{'having'}))
99 1 9 if defined $options->{'order_by'}
102 1 9 if (defined $options->{'limit'})
108 1 9 if (defined $options->{'offset'})
114 4 6 if (defined(my $for = $options->{'for'}))
119 1 1 unless $for eq 'update'
134 23 4 unless ref $fields eq 'ARRAY'
141 1 1 if @$field < 2
160 18 10 unless ref $table eq 'ARRAY'
164 10 12 if (ref $t eq 'ARRAY') { }
171 1 9 if @$join < 3
172 4 5 @$join % 2 == 0 ? :
173 4 5 $type =~ /^-(.+)$/ ? :
178 3 9 index($fk, $sep) > 0 ? :
3 9 index($pk, $sep) > 0 ? :
3 9 @morekeys ? :