Branch Coverage

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


line true false branch
633 1 0 unless exists $self->{'wait_for_startup'}
652 0 0 if (not defined $p) { }
673 0 0 defined $args{'portal'} ? :
0 0 defined $args{'statement'} ? :
675 0 0 if $Protocol::Database::PostgreSQL::log->is_debug
712 0 0 exists $args{'portal'} ? :
0 0 defined $args{'portal'} ? :
0 0 defined $args{'statement'} ? :
744 0 0 exists $args{'portal'} ? :
0 0 defined $args{'portal'} ? :
0 0 defined $args{'statement'} ? :
765 0 0 $args{'limit'} ? :
0 0 if $Protocol::Database::PostgreSQL::log->is_debug
781 0 0 unless defined $args{'sql'}
783 0 0 defined $args{'statement'} ? :
800 0 0 if ($args{'password_type'} eq "md5")
875 0 1 unless $self->is_first_message
877 0 1 if ($args{'replication'}) { }
933 0 1 $_[0]{'authenticated'} ? :
960 0 0 unless defined(my $msg = $self->message(@args))
966 0 0 defined $_ ? :
0 0 if $Protocol::Database::PostgreSQL::log->is_debug
999 0 1 if exists $FRONTEND_MESSAGE_BUILDER{$type}
1000 1 0 if $self->can($self->method_for_frontend_type($type))
1012 0 1 unless $self->is_known_frontend_message_type($type)
1033 0 1 unless my $type = $BACKEND_MESSAGE_CODE{$code}
1059 0 17 unless length $msg >= 5
1087 0 0 if $self->backend_state eq "error"
1102 0 0 if $self->backend_state eq "error"
1116 0 0 if (@_)
1118 0 0 unless grep {$state eq $_;} "idle", "transaction", "error"
1134 0 0 if (@_)
1138 0 0 if $self->{'wait_for_startup'}
1163 0 0 defined $_ ? :
1180 0 0 unless length $$buffref >= 5
1183 0 0 unless length $$buffref >= $size + 1
1200 1 2 unless exists $args{'type'}
1201 1 1 unless exists $args{'data'}
1205 0 1 defined $args{'type'} ? :