DocumentClient/Query.pm

filter: Statementstmt 75.0% 6 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 81.8% 9 / 11 CC 1 SCAR 0.9
CC
1
Cov
75%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« DocumentClient/Delete.pm ↑ Summary DocumentClient/Scan.pm »
1 package PawsX::DynamoDB::DocumentClient::Query;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use 5.008_005;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶use aliased 'PawsX::DynamoDB::DocumentClient::QueryOrScan';
Subroutine BEGIN: called CC=1 SCAR=2.6
7  
8 use PawsX::DynamoDB::DocumentClient::Util qw(
9 make_arg_transformer
10 );
11  
12 my $arg_transformer = make_arg_transformer(
13 method_name => 'query',
14 to_marshall => QueryOrScan->to_marshall,
15 );
16  
17 sub transform_arguments {
18 my $class = shift;
19 my %args = @_;
20 my $force_type = delete $args{force_type};
21 return map
22 {
23 $_ => $arg_transformer->($_, $args{$_}, $force_type)
24 }
25 keys %args;
26 }
27  
28 sub transform_output {
29 my $class = shift;
30 return QueryOrScan->transform_output(@_);
31 }
32  
33 sub run_service_command {
34 my ($class, $service, %args) = @_;
35 return $service->Query(%args);
36 }
37  
38 1;
39 __END__
« DocumentClient/Delete.pm ↑ Summary DocumentClient/Scan.pm »