| 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
Condition33%1/3
defined $self->copy_source_bucket and defined $self->copy_source_key
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
| |||||||||||||||||||||||||||||
| 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__ | ||||||||||||||||||||||||||||