PostgreSQL/Backend/ReadyForQuery.pm

filter: Statementstmt 73.6% 14 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 50.0% 1 / 2 totaltotal 70.3% 19 / 27 CC 1 SCAR 2.9
CC
1
Cov
74%
state
2.0
new_from_message
2.0
BEGIN
1.0
CRAP 1.3
« PostgreSQL/Backend/EmptyQueryResponse.pm ↑ Summary PostgreSQL/Backend/NotificationResponse.pm »
1 package Protocol::Database::PostgreSQL::Backend::ReadyForQuery;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 our $VERSION = '2.000'; # VERSION
7  
8 4 ▶use parent qw(Protocol::Database::PostgreSQL::Backend);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =head1 NAME
11  
12 Protocol::Database::PostgreSQL::Backend::ReadyForQuery
13  
14 =head1 DESCRIPTION
15  
16 =cut
17  
18 4 ▶use Log::Any qw($log);
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 0 ▶sub state : method { shift->{state} }
Subroutine state: not called CC=1 SCAR=6.9
Pod undocumented
21  
22 sub new_from_message {
23 0 ▶ my ($class, $msg) = @_;
Subroutine new_from_message: not called CC=1 SCAR=6.9
Pod documented
24 0 my (undef, undef, $state) = unpack('C1N1A1', $msg);
25 0 $log->tracef("Backend state is %s", $state);
26 0 return $class->new(
27 state => $state
28 );
29 }
30  
31 4 1;
32  
33 =head1 AUTHOR
34  
35 Tom Molesworth <TEAM@cpan.org>
36  
37 =head1 LICENSE
38  
39 Copyright Tom Molesworth 2010-2019. Licensed under the same terms as Perl itself.
40  
« PostgreSQL/Backend/EmptyQueryResponse.pm ↑ Summary PostgreSQL/Backend/NotificationResponse.pm »