PostgreSQL/Backend.pm

filter: Statementstmt 76.4% 13 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 2 totaltotal 70.8% 17 / 24 CC 1 SCAR 1.8
CC
1
Cov
76%
type
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« PostgreSQL/Backend/PortalSuspended.pm ↑ Summary PostgreSQL/Client.pm »
1 package Protocol::Database::PostgreSQL::Backend;
2  
3 27 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 27 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 27 our $VERSION = '2.000'; # VERSION
7  
8 27 ▶use parent qw(Protocol::Database::PostgreSQL::Message);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =head1 NAME
11  
12 Protocol::Database::PostgreSQL::Backend - base class for all backend message types
13  
14 =cut
15  
16 sub new {
17 1 ▶ my ($class, %args) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
18 1 return bless \%args, $class;
19 }
20  
21 sub type {
22 0 ▶ my ($self) = @_;
Subroutine type: not called CC=1 SCAR=6.9
Pod undocumented
23 0 my ($type) = ref($self) =~ /([a-zA-Z]+)$/;
24 0 return lcfirst($type) =~ s{([A-Z])}{'_' . lc($1)}ger;
25 }
26  
27 27 1;
28  
29 =head1 AUTHOR
30  
31 Tom Molesworth <TEAM@cpan.org>
32  
33 =head1 LICENSE
34  
35 Copyright Tom Molesworth 2010-2019. Licensed under the same terms as Perl itself.
36  
« PostgreSQL/Backend/PortalSuspended.pm ↑ Summary PostgreSQL/Client.pm »