Data/Riak/Request/SetBucketProps.pm untested

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