File Coverage

blib/lib/Net/Amazon/S3/Request/Role/HTTP/Header/Copy_source.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             # ABSTRACT: x-amz-copy-source header role
2             $Net::Amazon::S3::Request::Role::HTTP::Header::Copy_source::VERSION = '0.991';
3             use Moose::Role;
4 99     99   54674  
  99         261  
  99         660  
5             use Net::Amazon::S3::Constants;
6 99     99   421927  
  99         275  
  99         13673  
7             with 'Net::Amazon::S3::Request::Role::HTTP::Header' => {
8             name => '_copy_source',
9             header => Net::Amazon::S3::Constants->HEADER_COPY_SOURCE,
10             isa => 'Maybe[Str]',
11             required => 0,
12             default => sub {
13             my ($self) = @_;
14             defined $self->copy_source_bucket && defined $self->copy_source_key
15             ? $self->copy_source_bucket.'/'.$self->copy_source_key
16             : undef
17             ;
18             },
19             };
20              
21             has 'copy_source_bucket' => ( is => 'ro', isa => 'Str', required => 0 );
22             has 'copy_source_key' => ( is => 'ro', isa => 'Str', required => 0 );
23              
24             1;
25              
26              
27             =pod
28              
29             =encoding UTF-8
30              
31             =head1 NAME
32              
33             Net::Amazon::S3::Request::Role::HTTP::Header::Copy_source - x-amz-copy-source header role
34              
35             =head1 VERSION
36              
37             version 0.991
38              
39             =head1 AUTHOR
40              
41             Branislav ZahradnĂ­k <barney@cpan.org>
42              
43             =head1 COPYRIGHT AND LICENSE
44              
45             This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav ZahradnĂ­k.
46              
47             This is free software; you can redistribute it and/or modify it under
48             the same terms as the Perl 5 programming language system itself.
49              
50             =cut