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

filter: Statementstmt 94.1% 16 / 17 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 4 totaltotal 67.6% 23 / 34 CC 3 SCAR 7.2
CC
3
Cov
82%
__ANON__
3.5
AUTHENTICATED_USERS
2.0
BEGIN
1.0
CRAP 2.1
« Net/Amazon/S3/Operation/Bucket/Create/Request.pm ↑ Summary Net/Amazon/S3/X.pm »
1 package Net::Amazon::S3::ACL::Grantee::Group;
2 # ABSTRACT: Represents group reference for ACL
3 100 $Net::Amazon::S3::ACL::Grantee::Group::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 group => (
9 is => 'ro',
10 isa => 'Str',
11 required => 1,
12 );
13  
14 2 ▶around BUILDARGS => sub {
Subroutine __ANON__: called CC=3 SCAR=12.5
15 2 my ($orig, $class) = (shift, shift);
16 2 ▶ unshift @_, 'group' if @_ == 1 && ! ref $_[0];
Branch: 1 branch
BranchTrueFalseTotal
if @_ == 1 and not ref $_[0] 2 0 2
Condition33%1/3
@_ == 1 and not ref $_[0]
!ll&&!rl&&r
002
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 2 return $class->$orig (@_);
19 100 };
20  
21 2 ▶sub format_for_header {
Subroutine format_for_header: called CC=1 SCAR=0.0
Pod undocumented
22 2 my ($self) = @_;
23  
24 2 return "uri=\"${\ $self->group }\"";
25 }
26  
27 0 ▶sub AUTHENTICATED_USERS {
Subroutine AUTHENTICATED_USERS: not called CC=1 SCAR=6.9
Pod undocumented
28 0 __PACKAGE__->new ('http://acs.amazonaws.com/groups/global/AuthenticatedUsers');
29 }
30  
31 1 ▶sub ALL_USERS {
Subroutine ALL_USERS: called CC=1 SCAR=0.0
Pod undocumented
32 1 __PACKAGE__->new ('http://acs.amazonaws.com/groups/global/AllUsers');
33 }
34  
35 1 ▶sub LOG_DELIVERY {
Subroutine LOG_DELIVERY: called CC=1 SCAR=0.0
Pod undocumented
36 1 __PACKAGE__->new ('http://acs.amazonaws.com/groups/s3/LogDelivery');
37 }
38  
39 100 1;
40  
41 __END__
« Net/Amazon/S3/Operation/Bucket/Create/Request.pm ↑ Summary Net/Amazon/S3/X.pm »