Branch Coverage

blib/lib/Protocol/Database/PostgreSQL.pm
Criterion Covered Total %
branch 14 78 17.9


line true false branch
630 1 0 unless exists $self->{'wait_for_startup'}
649 0 0 if (not defined $p) { }
670 0 0 defined $args{'portal'} ? :
0 0 defined $args{'statement'} ? :
672 0 0 if $Protocol::Database::PostgreSQL::log->is_debug
709 0 0 exists $args{'portal'} ? :
0 0 defined $args{'portal'} ? :
0 0 defined $args{'statement'} ? :
741 0 0 exists $args{'portal'} ? :
0 0 defined $args{'portal'} ? :
0 0 defined $args{'statement'} ? :
762 0 0 $args{'limit'} ? :
0 0 if $Protocol::Database::PostgreSQL::log->is_debug
778 0 0 unless defined $args{'sql'}
780 0 0 defined $args{'statement'} ? :
797 0 0 if ($args{'password_type'} eq "md5")
872 0 1 unless $self->is_first_message
874 0 1 if ($args{'replication'}) { }
930 0 1 $_[0]{'authenticated'} ? :
957 0 0 unless defined(my $msg = $self->message(@args))
963 0 0 defined $_ ? :
0 0 if $Protocol::Database::PostgreSQL::log->is_debug
996 0 1 if exists $FRONTEND_MESSAGE_BUILDER{$type}
997 1 0 if $self->can($self->method_for_frontend_type($type))
1009 0 1 unless $self->is_known_frontend_message_type($type)
1030 0 1 unless my $type = $BACKEND_MESSAGE_CODE{$code}
1056 0 17 unless length $msg >= 5
1084 0 0 if $self->backend_state eq "error"
1099 0 0 if $self->backend_state eq "error"
1113 0 0 if (@_)
1115 0 0 unless grep {$state eq $_;} "idle", "transaction", "error"
1131 0 0 if (@_)
1135 0 0 if $self->{'wait_for_startup'}
1160 0 0 defined $_ ? :
1177 0 0 unless length $$buffref >= 5
1180 0 0 unless length $$buffref >= $size + 1
1197 1 2 unless exists $args{'type'}
1198 1 1 unless exists $args{'data'}
1202 0 1 defined $args{'type'} ? :