Picnic/Result/User.pm

filter: Statementstmt 92.3% 24 / 26 Branchbran 25.0% 1 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 81.8% 9 / 11 Podpod n/a totaltotal 82.9% 34 / 41 CC 3 SCAR 7.0
CC
3
Cov
83%
__ANON__
6.0
__ANON__
2.1
__ANON__
2.0
CRAP 2.0
« Picnic/Result/SearchResult.pm ↑ Summary Picnic/Result/Categories.pm »
1 package WWW::Picnic::Result::User;
2 # ABSTRACT: Picnic user account information
3 2 our $VERSION = '0.101';
4 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 extends 'WWW::Picnic::Result';
7  
8  
9 has user_id => (
10 is => 'ro',
11 lazy => 1,
12 1 ▶ default => sub { shift->_get('user_id') },
Subroutine __ANON__: called CC=1 SCAR=0.0
13 2 );
14  
15  
16 has firstname => (
17 is => 'ro',
18 lazy => 1,
19 1 ▶ default => sub { shift->_get('firstname') },
Subroutine __ANON__: called CC=1 SCAR=0.0
20 2 );
21  
22  
23 has lastname => (
24 is => 'ro',
25 lazy => 1,
26 1 ▶ default => sub { shift->_get('lastname') },
Subroutine __ANON__: called CC=1 SCAR=0.0
27 2 );
28  
29  
30 has contact_email => (
31 is => 'ro',
32 lazy => 1,
33 1 ▶ default => sub { shift->_get('contact_email') },
Subroutine __ANON__: called CC=1 SCAR=0.0
34 2 );
35  
36  
37 has phone => (
38 is => 'ro',
39 lazy => 1,
40 1 ▶ default => sub { shift->_get('phone') },
Subroutine __ANON__: called CC=1 SCAR=0.0
41 2 );
42  
43  
44 has customer_type => (
45 is => 'ro',
46 lazy => 1,
47 1 ▶ default => sub { shift->_get('customer_type') },
Subroutine __ANON__: called CC=1 SCAR=0.0
48 2 );
49  
50  
51 has address => (
52 is => 'ro',
53 lazy => 1,
54 1 ▶ default => sub { shift->_get('address') },
Subroutine __ANON__: called CC=1 SCAR=0.0
55 2 );
56  
57  
58 has household_details => (
59 is => 'ro',
60 lazy => 1,
61 0 ▶ default => sub { shift->_get('household_details') },
Subroutine __ANON__: not called CC=1 SCAR=6.9
62 2 );
63  
64  
65 has feature_toggles => (
66 is => 'ro',
67 lazy => 1,
68 1 ▶ default => sub { shift->_get('feature_toggles') || [] },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
(shift())->_get("feature_toggles") or [] 1 0 1
69 2 );
70  
71  
72 has subscriptions => (
73 is => 'ro',
74 lazy => 1,
75 0 ▶ default => sub { shift->_get('subscriptions') || [] },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
(shift())->_get("subscriptions") or [] 0 0 0
76 2 );
77  
78  
79 2 1;
80  
81 __END__
« Picnic/Result/SearchResult.pm ↑ Summary Picnic/Result/Categories.pm »