Branch Coverage

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


line true false branch
624 1 0 unless exists $self->{'wait_for_startup'}
643 0 0 if (not defined $p) { }
664 0 0 defined $args{'portal'} ? :
0 0 defined $args{'statement'} ? :
666 0 0 if $Protocol::Database::PostgreSQL::log->is_debug
703 0 0 exists $args{'portal'} ? :
0 0 defined $args{'portal'} ? :
0 0 defined $args{'statement'} ? :
735 0 0 exists $args{'portal'} ? :
0 0 defined $args{'portal'} ? :
0 0 defined $args{'statement'} ? :
756 0 0 $args{'limit'} ? :
0 0 if $Protocol::Database::PostgreSQL::log->is_debug
772 0 0 unless defined $args{'sql'}
774 0 0 defined $args{'statement'} ? :
791 0 0 if ($args{'password_type'} eq 'md5')
831 0 1 unless $self->is_first_message
833 0 1 if ($args{'replication'}) { }
889 0 1 $_[0]{'authenticated'} ? :
916 0 0 unless defined(my $msg = $self->message(@args))
922 0 0 defined $_ ? :
0 0 if $Protocol::Database::PostgreSQL::log->is_debug
951 0 1 if exists $FRONTEND_MESSAGE_BUILDER{$type}
952 1 0 if $self->can($self->method_for_frontend_type($type))
964 0 1 unless $self->is_known_frontend_message_type($type)
985 0 1 unless my $type = $BACKEND_MESSAGE_CODE{$code}
1011 0 17 unless length $msg >= 5
1039 0 0 if $self->backend_state eq 'error'
1054 0 0 if $self->backend_state eq 'error'
1068 0 0 if (@_)
1070 0 0 unless grep {$state eq $_;} 'idle', 'transaction', 'error'
1086 0 0 if (@_)
1090 0 0 if $self->{'wait_for_startup'}
1115 0 0 defined $_ ? :
1132 0 0 unless length $$buffref >= 5
1135 0 0 unless length $$buffref >= $size + 1
1152 1 2 unless exists $args{'type'}
1153 1 1 unless exists $args{'data'}
1157 0 1 defined $args{'type'} ? :