Asana/User.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 0.0% 0 / 2 totaltotal 53.1% 17 / 32 CC 3 SCAR 17.9
CC
3
Cov
60%
__ANON__
12.0
own_base_args
2.0
reload_base_args
2.0
CRAP 6.0
« Asana/Story.pm ↑ Summary Asana/Project.pm »
1 package WWW::Asana::User;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $WWW::Asana::User::AUTHORITY = 'cpan:GETTY';
4 }
5 {
6 1 $WWW::Asana::User::VERSION = '0.003';
7 }
8 # ABSTRACT: Asana User Class
9  
10 1 ▶use MooX;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 with 'WWW::Asana::Role::HasClient';
13 1 with 'WWW::Asana::Role::HasResponse';
14 1 with 'WWW::Asana::Role::NewFromResponse';
15  
16 1 with 'WWW::Asana::Role::CanReload';
17 # CanNotUpdate
18 # CanNotCreate
19 # CanNotDelete
20  
21 0 ▶sub own_base_args { 'users', shift->id }
Subroutine own_base_args: not called CC=1 SCAR=6.9
Pod undocumented
22 0 ▶sub reload_base_args { 'User', 'GET' }
Subroutine reload_base_args: not called CC=1 SCAR=6.9
Pod undocumented
23  
24 1 has id => (
25 is => 'ro',
26 required => 1,
27 );
28  
29 1 has name => (
30 is => 'ro',
31 predicate => 1,
32 );
33  
34 1 has email => (
35 is => 'ro',
36 predicate => 1,
37 );
38  
39 has workspaces => (
40 is => 'ro',
41 0 ▶ isa => sub {
Subroutine __ANON__: not called CC=3 SCAR=24.8
42 0 ▶ die "workspaces must be an ArrayRef" unless ref $_[0] eq 'ARRAY';
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0] eq "ARRAY" 0 0 0
43 0 ▶ die "workspaces must be an ArrayRef of WWW::Asana::Workspace" if grep { ref $_ ne 'WWW::Asana::Workspace' } @{$_[0]};
Branch: 1 branch
BranchTrueFalseTotal
if grep {ref $_ ne "WWW::Asana::Workspace";} @{$_[0];} 0 0 0
44 },
45 1 predicate => 1,
46 );
47  
48 1 1;
49  
50 __END__
« Asana/Story.pm ↑ Summary Asana/Project.pm »