PostgreSQL/Backend/ParameterStatus.pm

filter: Statementstmt 68.7% 11 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 33.3% 1 / 3 totaltotal 60.0% 15 / 25 CC 1 SCAR 4.1
CC
1
Cov
69%
key
2.0
value
2.0
new_from_message
2.0
CRAP 1.5
« PostgreSQL/Backend/CommandComplete.pm ↑ Summary PostgreSQL/Backend/BindComplete.pm »
1 package Protocol::Database::PostgreSQL::Backend::ParameterStatus;
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::ParameterStatus
13  
14 =head1 DESCRIPTION
15  
16 =cut
17  
18 0 ▶sub key { shift->{key} }
Subroutine key: not called CC=1 SCAR=6.9
Pod undocumented
19 0 ▶sub value { shift->{value} }
Subroutine value: not called CC=1 SCAR=6.9
Pod undocumented
20  
21 sub new_from_message {
22 0 ▶ my ($class, $msg) = @_;
Subroutine new_from_message: not called CC=1 SCAR=6.9
Pod documented
23  
24 # Extract size then reset pointer to start of parameters
25 0 my (undef, undef, $k, $v) = unpack('C1N1Z*Z*', $msg);
26  
27 0 return $class->new(
28 key => $k,
29 value => $v,
30 );
31 }
32  
33 4 1;
34  
35 =head1 AUTHOR
36  
37 Tom Molesworth <TEAM@cpan.org>
38  
39 =head1 LICENSE
40  
41 Copyright Tom Molesworth 2010-2019. Licensed under the same terms as Perl itself.
42  
« PostgreSQL/Backend/CommandComplete.pm ↑ Summary PostgreSQL/Backend/BindComplete.pm »