PostgreSQL/Backend/CopyOutResponse.pm

filter: Statementstmt 66.6% 14 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 4 / 8 Podpod 25.0% 1 / 4 totaltotal 57.5% 19 / 33 CC 1 SCAR 4.1
CC
1
Cov
67%
type
2.0
data_format
2.0
count
2.0
CRAP 1.5
« PostgreSQL/Backend/BackendKeyData.pm ↑ Summary PostgreSQL/Backend/CommandComplete.pm »
1 package Protocol::Database::PostgreSQL::Backend::CopyOutResponse;
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::CopyOutResponse
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 type { 'copy_out_response' }
Subroutine type: not called CC=1 SCAR=6.9
Pod undocumented
21  
22 0 ▶sub data_format { shift->{data_format} }
Subroutine data_format: not called CC=1 SCAR=6.9
Pod undocumented
23 0 ▶sub count { shift->{count} }
Subroutine count: not called CC=1 SCAR=6.9
Pod undocumented
24 sub new_from_message {
25 0 ▶ my ($class, $msg) = @_;
Subroutine new_from_message: not called CC=1 SCAR=6.9
Pod documented
26 0 (undef, undef, my $data_format, my $count, my @formats) = unpack('C1N1C1n1 (n1)*', $msg);
27 0 $log->tracef('COPY IN %s with %s columns, formats %s', $data_format, $count, \@formats);
28 0 return $class->new(
29 data_format => $data_format,
30 count => $count,
31 formats => \@formats
32 );
33 }
34  
35 4 1;
36  
37 =head1 AUTHOR
38  
39 Tom Molesworth <TEAM@cpan.org>
40  
41 =head1 LICENSE
42  
43 Copyright Tom Molesworth 2010-2019. Licensed under the same terms as Perl itself.
44  
« PostgreSQL/Backend/BackendKeyData.pm ↑ Summary PostgreSQL/Backend/CommandComplete.pm »