Net/Amazon/S3/Request/Role/HTTP/Header/Copy_source.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 78.2% 18 / 23 CC 3 SCAR 9.7
CC
3
Cov
83%
__ANON__
3.7
BEGIN
1.0
BEGIN
1.0
CRAP 2.6
« Net/Amazon/S3/Error/Handler/Confess.pm ↑ Summary Net/Amazon/S3/Response.pm »
1 package Net::Amazon::S3::Request::Role::HTTP::Header::Copy_source;
2 # ABSTRACT: x-amz-copy-source header role
3 99 $Net::Amazon::S3::Request::Role::HTTP::Header::Copy_source::VERSION = '0.992';
4 99 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 99 ▶use Net::Amazon::S3::Constants;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 with 'Net::Amazon::S3::Request::Role::HTTP::Header' => {
9 name => '_copy_source',
10 header => Net::Amazon::S3::Constants->HEADER_COPY_SOURCE,
11 isa => 'Maybe[Str]',
12 required => 0,
13 1 ▶ default => sub {
Subroutine __ANON__: called CC=3 SCAR=13.1
14 1 my ($self) = @_;
15 1 ▶ defined $self->copy_source_bucket && defined $self->copy_source_key
Branch: 1 branch
BranchTrueFalseTotal
defined $self->copy_source_bucket && defined $self->copy_source_key ? : 0 1 1
Condition33%1/3
defined $self->copy_source_bucket and defined $self->copy_source_key
!ll&&!rl&&r
100
MC/DC0%0/2
defined $self->copy_source_bucket and defined $self->copy_source_key
defined $self->copy_source_bucket defined $self->copy_source_key
Truth table33%1/3
A and B
A= defined $self->copy_source_bucketB= defined $self->copy_source_key
ABresult
0X0
100
111
16 ? $self->copy_source_bucket.'/'.$self->copy_source_key
17 : undef
18 ;
19 },
20 99 };
21  
22 99 has 'copy_source_bucket' => ( is => 'ro', isa => 'Str', required => 0 );
23 99 has 'copy_source_key' => ( is => 'ro', isa => 'Str', required => 0 );
24  
25 99 1;
26  
27 __END__
« Net/Amazon/S3/Error/Handler/Confess.pm ↑ Summary Net/Amazon/S3/Response.pm »