Net/Amazon/S3/ACL/Grantee/Email.pm

filter: Statementstmt 100% 14 / 14 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 76.0% 19 / 25 CC 3 SCAR 9.1
CC
3
Cov
84%
__ANON__
3.5
BEGIN
1.0
format_for_header
1.0
CRAP 2.5
« Net/Amazon/S3/Response.pm ↑ Summary Net/Amazon/S3/ACL/Grantee/User.pm »
1 package Net::Amazon::S3::ACL::Grantee::Email;
2 # ABSTRACT: Represents user reference by email address for ACL
3 100 $Net::Amazon::S3::ACL::Grantee::Email::VERSION = '0.992';
4 100 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 100 extends 'Net::Amazon::S3::ACL::Grantee';
7  
8 100 has address => (
9 is => 'ro',
10 isa => 'Str',
11 required => 1,
12 );
13  
14 1 ▶around BUILDARGS => sub {
Subroutine __ANON__: called CC=3 SCAR=12.5
15 1 my ($orig, $class) = (shift, shift);
16 1 ▶ unshift @_, 'address' if @_ == 1 && ! ref $_[0];
Branch: 1 branch
BranchTrueFalseTotal
if @_ == 1 and not ref $_[0] 1 0 1
Condition33%1/3
@_ == 1 and not ref $_[0]
!ll&&!rl&&r
001
MC/DC0%0/2
@_ == 1 and not ref $_[0]
@_ == 1 not ref $_[0]
Truth table33%1/3
A and not(B)
A= @_ == 1B= not ref $_[0]
ABresult
0X0
100
111
17  
18 1 return $class->$orig (@_);
19 100 };
20  
21 1 ▶sub format_for_header {
Subroutine format_for_header: called CC=1 SCAR=0.0
Pod undocumented
22 1 my ($self) = @_;
23  
24 1 return "emailAddress=\"${\ $self->address }\"";
25 }
26  
27 100 1;
28  
29 __END__
« Net/Amazon/S3/Response.pm ↑ Summary Net/Amazon/S3/ACL/Grantee/User.pm »