Branch Coverage

blib/lib/Protocol/PostgreSQL.pm
Criterion Covered Total %
branch 40 88 45.4


line true false branch
819 4 0 unless exists $$self{'wait_for_startup'}
821 3 1 if exists $args{'debug'}
823 0 4 if exists $args{'user'}
824 0 4 if exists $args{'pass'}
825 0 4 if exists $args{'database'}
830 0 4 unless exists $CALLBACK_MAP{$k}
850 0 1 (shift())->{'authenticated'} ? :
872 2 2 exists $args{$_} ? :
874 0 2 if keys %args
895 0 4 unless defined $msg
899 0 0 defined $_ ? :
921 1 4 unless ($msg)
923 0 1 unless delete $args{'parameters'}
933 5 0 if $self->is_ready
947 5 0 if (my $info = shift @{$$self{'message_queue'};})
958 1 4 if exists $$info{'callback'}
972 0 10 unless exists $FRONTEND_MESSAGE_BUILDER{$type}
994 0 0 unless exists $CALLBACK_MAP{$k}
1020 81 0 unless $$self{'debug'}
1023 0 0 if ref $msg and ref $msg eq 'CODE'
1024 0 0 unless (ref $$self{'debug'})
1029 0 0 if (ref $$self{'debug'} eq 'CODE')
1053 0 18 unless exists $BACKEND_MESSAGE_HANDLER{$type}
1069 0 17 unless length $msg >= 5
1083 0 4 if $self->backend_state eq 'error'
1101 0 0 if $self->backend_state eq 'error'
1116 0 0 if $self->backend_state eq 'error'
1130 5 5 if (@_)
1132 0 5 unless grep {$state eq $_;} 'idle', 'transaction', 'error'
1148 0 2 if (@_)
1163 2 2 if (@_)
1192 0 1 unless defined $args{'sql'}
1209 5 5 if (@_)
1213 0 5 if $$self{'wait_for_startup'}
1227 0 0 if (defined $_) { }
1228 0 0 if index($_, '\\') >= 0
1229 0 0 if index($_, "\cH") >= 0
1230 0 0 if index($_, "\f") >= 0
1231 0 0 if index($_, "\n") >= 0
1232 0 0 if index($_, "\t") >= 0
1233 0 0 if index($_, "\r") >= 0
1255 1 12 unless exists $args{'type'}
1256 1 11 unless exists $args{'data'}
1260 3 8 $self->is_first_message ? :