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   697 use strict;
  1         3  
  1         23  
4 1     1   26 use 5.008_005;
  1         3  
5              
6 1     1   431 use aliased 'PawsX::DynamoDB::DocumentClient::QueryOrScan';
  1         545  
  1         5  
7              
8 1         132 use PawsX::DynamoDB::DocumentClient::Util qw(
9             make_arg_transformer
10 1     1   73 );
  1         2  
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 893 my $class = shift;
19 3         20 my %args = @_;
20 3         11 return map { $_ => $arg_transformer->($_, $args{$_}) } keys %args;
  14         150  
21             }
22              
23             sub transform_output {
24 3     3 0 6292 my $class = shift;
25 3         25 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__