Branch Coverage

blib/lib/DBIx/PgLink/Local.pm
Criterion Covered Total %
branch 4 158 2.5


line true false branch
37 0 0 ref $attr eq 'HASH' ? :
44 0 0 $r eq 'HASH' ? :
0 0 $r eq 'ARRAY' ? :
0 0 $r eq 'SCALAR' ? :
0 0 $r eq '' && $t ? :
55 0 0 if @types
65 0 0 if ($$attr{'no_cache'})
69 0 0 unless (tied %cached_plans)
81 0 0 if (exists $cached_plans{$key}) { }
82 0 0 if trace_level() >= 3
94 0 0 unless exists $$attr{'no_cursor'}
95 0 0 unless @_
97 0 0 unless ($query =~ /^\s*(SELECT|INSERT|UPDATE|DELETE)/)
98 0 0 unless exists $$attr{'no_cache'}
110 0 0 unless defined $$attr{'Slice'} and ref $$attr{'Slice'} eq 'HASH'
121 0 0 if wantarray
163 0 0 unless defined $q
166 0 0 if ($q =~ s/\\/\\\\/g)
182 0 0 unless defined $_
183 0 0 if ($quote_ident_only_if_necessary) { }
184 0 0 unless $quote_ident_sth
211 0 0 unless defined $pg_array and $pg_array ne '' and $pg_array ne '{}'
213 0 0 if ($pg_array =~ /^\{([^{"]*)\}$/) { }
216 0 0 $_ eq 'NULL' ? :
227 0 0 if ($dim =~ /^\[\d+:\d+\]$/) { }
266 0 0 defined $_ ? :
0 0 ref $_ eq 'ARRAY' ? :
310 0 0 $b ? :
0 0 defined $b ? :
316 0 0 $b eq 't' ? :
0 0 defined $b ? :
323 0 0 if $pg_server_version
371 2 6 if ($_[0] =~ /\$\d/) { }
5 1 elsif ($_[0] =~ /[?]/) { }
402 0 0 ref $attr eq 'HASH' ? :
413 0 0 if (@types) { }
0 0 elsif (not $$attr{'no_parse'}) { }
417 0 0 if ($t =~ /^_(.*)$/ or $t =~ /^(.*)\[\]$/)
420 0 0 if exists $TYPE_ALIAS{$base}
421 0 0 $array ? :
424 0 0 $t eq 'HASH' ? :
432 0 0 if (trace_level() >= 3)
433 0 0 @types ? :
440 0 0 if $@ or not $$data{'Plan'}
441 0 0 if trace_level() >= 3
453 0 0 unless defined $r
454 0 0 if (ref $r eq 'ARRAY') { }
0 0 elsif (ref $r eq 'HASH') { }
472 0 0 if (defined $$self{'Cursor'})
473 0 0 if trace_level() >= 3
483 0 0 unless @{$$self{'Types'};}
487 0 0 if ($type eq 'BOOL') { }
0 0 elsif ($type =~ /^_/ and ref $param eq 'ARRAY') { }
0 0 elsif ($type eq 'HASH' and ref $param eq 'HASH') { }
501 0 0 unless $row
503 0 0 unless exists $$row{$field}
507 0 0 unless exists $$row{$field}
512 0 0 unless exists $$row{$field}
523 0 0 if ($$self{'Attr'}{'no_cursor'}) { }
527 0 0 if (trace_level() >= 4)
539 0 0 if ($@)
540 0 0 defined $_ ? :
544 0 0 unless ref $rv eq 'HASH'
547 0 0 if trace_level() >= 4
550 0 0 if defined $result and $result eq '0'
558 0 0 if (trace_level() >= 4)
571 0 0 if $@ or not defined $$self{'Cursor'}
583 0 0 unless defined $attr and ref $attr eq 'HASH'
585 0 0 if (defined(my $rv = $$self{'Result'})) { }
0 0 elsif (defined $$self{'Cursor'}) { }
591 0 0 if trace_level() >= 3
600 0 0 if trace_level() >= 3
609 0 0 if (defined(my $rv = $$self{'Result'})) { }
0 0 elsif (defined $$self{'Cursor'}) { }
613 0 0 if trace_level() >= 4
618 0 0 if trace_level() >= 4
621 0 0 if trace_level() >= 4
629 0 0 if wantarray
632 0 0 defined $row ? :