Net/Amazon/S3/Client/Object/Range.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 100% 4 / 4 totaltotal 71.8% 23 / 32 CC 1 SCAR 3.6
CC
1
Cov
71%
get_decoded
2.0
get_callback
2.0
get_filename
2.0
CRAP 1.4
« Net/Amazon/S3/Request/Role/HTTP/Method.pm ↑ Summary Net/Amazon/S3/Operation/Object/Fetch/Request.pm »
1 package Net::Amazon::S3::Client::Object::Range;
2 # ABSTRACT: Object extension allowing to fetch part of an object
3 99 $Net::Amazon::S3::Client::Object::Range::VERSION = '0.992';
4 99 ▶use Moose 0.85;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 99 ▶use MooseX::StrictConstructor 0.16;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 99 has 'object'
8 => is => 'ro'
9 => isa => 'Net::Amazon::S3::Client::Object'
10 => required => 1
11 ;
12  
13 99 has 'range'
14 => is => 'ro'
15 => isa => 'Str'
16 => required => 1
17 ;
18  
19 1 ▶sub _get {
Subroutine _get: called CC=1 SCAR=0.0
20 1 my ($self, %args) = shift;
21  
22 1 my $response = $self->object->_perform_operation (
23 'Net::Amazon::S3::Operation::Object::Fetch',
24  
25 %args,
26  
27 method => 'GET',
28 range => $self->range,
29 );
30  
31 1 return $response;
32 }
33  
34 1 ▶sub get {
Subroutine get: called CC=1 SCAR=0.0
Pod documented
35 1 my $self = shift;
36 1 return $self->_get->content;
37 }
38  
39 0 ▶sub get_decoded {
Subroutine get_decoded: not called CC=1 SCAR=6.9
Pod documented
40 0 my $self = shift;
41 0 return $self->_get->decoded_content(@_);
42 }
43  
44 0 ▶sub get_callback {
Subroutine get_callback: not called CC=1 SCAR=6.9
Pod documented
45 0 my ($self, $callback) = @_;
46  
47 0 return $self->_get (filename => $callback)->http_response;
48 }
49  
50 0 ▶sub get_filename {
Subroutine get_filename: not called CC=1 SCAR=6.9
Pod documented
51 0 my ($self, $filename) = @_;
52  
53 0 return $self->_get (filename => $filename)->http_response;
54 }
55  
56  
57 99 1;
58  
59 __END__
« Net/Amazon/S3/Request/Role/HTTP/Method.pm ↑ Summary Net/Amazon/S3/Operation/Object/Fetch/Request.pm »