File Coverage

blib/lib/PawsX/DynamoDB/DocumentClient/Query.pm
Criterion Covered Total %
statement 17 19 89.4
branch n/a
condition n/a
subroutine 6 7 85.7
pod 0 3 0.0
total 23 29 79.3


line stmt bran cond sub pod time code
1             package PawsX::DynamoDB::DocumentClient::Query;
2              
3 1     1   1032 use strict;
  1         4  
  1         39  
4 1     1   30 use 5.008_005;
  1         6  
5              
6 1     1   629 use aliased 'PawsX::DynamoDB::DocumentClient::QueryOrScan';
  1         861  
  1         9  
7              
8 1         286 use PawsX::DynamoDB::DocumentClient::Util qw(
9             make_arg_transformer
10 1     1   127 );
  1         4  
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 3     3 0 936 my $class = shift;
19 3         16 my %args = @_;
20 3         12 return map { $_ => $arg_transformer->($_, $args{$_}) } keys %args;
  14         146  
21             }
22              
23             sub transform_output {
24 3     3 0 6247 my $class = shift;
25 3         20 return QueryOrScan->transform_output(@_);
26             }
27              
28             sub run_service_command {
29 0     0 0   my ($class, $service, %args) = @_;
30 0           return $service->Query(%args);
31             }
32              
33             1;
34             __END__