Branch Coverage

blib/lib/Database/Async/Engine/PostgreSQL.pm
Criterion Covered Total %
branch 8 66 12.1


line true false branch
85 0 0 if exists $args{$_}
161 0 0 if $self->service
163 0 0 unless ref $uri
231 4 4 if exists $ENV{'PGSERVICEFILE'}
232 2 2 if exists $ENV{'PGSYSCONFDIR'}
234 1 1 if -r $path
248 1 2 unless $data->{$srv}
275 0 0 unless my $ssl = $self->ssl
287 0 0 $eof ? :
288 0 0 if $eof
290 0 0 if ($resp eq 'S') { }
0 0 elsif ($resp eq 'N') { }
307 0 0 if $self->ssl == 2
328 0 0 unless $dsn =~ s/^DBI:Pg://i
340 0 0 if exists $cfg->{'hostaddr'}
505 0 0 unless my $code = $AUTH_HANDLER{$msg->auth_type}
523 0 0 unless my $q = $self->active_query
533 0 0 unless (my $query = delete $self->{'active_query'})
538 0 0 unless $query->completed->is_ready
555 0 0 if $self->db
582 0 0 unless $f->is_ready
615 0 0 unless $query->ready_to_stream->is_ready
625 0 0 unless (my $query = $self->active_query)
666 0 0 if (my $param = $self->{'parameter'}{$k}) { }
692 0 0 unless my $idle = $self->{'idle'} and $v
693 0 0 unless $idle->is_ready
700 0 0 if $self->{'active_query'}
711 0 0 unless defined $txt and my $encoding = $self->encoding
712 0 0 if $encoding eq 'UTF-8'
718 0 0 unless defined $txt and my $encoding = $self->encoding
719 0 0 if $encoding eq 'UTF-8'
725 0 0 if $self->{'active_query'}
749 0 0 unless ($query->{'in'})