Data/Riak/Request/GetBucketProps.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
as_http_request_args
2.0
_mangle_retval
2.0
BEGIN
2.0
CRAP 2.0
1 package Data::Riak::Request::GetBucketProps;
2 {
3 $Data::Riak::Request::GetBucketProps::VERSION = '2.0';
4 }
5  
6 use Moose;
7 use Data::Riak::Result::SingleJSONValue;
8 use namespace::autoclean;
9  
10 sub as_http_request_args {
11 my ($self) = @_;
12  
13 return {
14 method => 'GET',
15 uri => sprintf('buckets/%s/props', $self->bucket_name),
16 accept => 'application/json',
17 };
18 }
19  
20 sub _mangle_retval {
21 my ($self, $ret) = @_;
22 $ret->json_value->{props};
23 }
24  
25 with 'Data::Riak::Request::WithBucket';
26  
27 has '+result_class' => (
28 default => Data::Riak::Result::SingleJSONValue::,
29 );
30  
31 __PACKAGE__->meta->make_immutable;
32  
33 1;
34  
35 __END__