Picnic/Result/SearchResult.pm

filter: Statementstmt 82.6% 19 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 55.5% 5 / 9 Podpod n/a totaltotal 70.5% 24 / 34 CC 2 SCAR 8.3
CC
2
Cov
76%
__ANON__
6.0
__ANON__
2.0
__ANON__
2.0
CRAP 2.3
« Picnic/Result/Login.pm ↑ Summary Picnic/Result/User.pm »
1 package WWW::Picnic::Result::SearchResult;
2 2 our $VERSION = '0.100';
3 2 our $AUTHORITY = 'cpan:GETTY';
4 # ABSTRACT: Picnic product search result item
5  
6 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 extends 'WWW::Picnic::Result';
9  
10  
11 has id => (
12 is => 'ro',
13 lazy => 1,
14 1 ▶ default => sub { shift->_get('id') },
Subroutine __ANON__: called CC=1 SCAR=0.0
15 2 );
16  
17  
18 has name => (
19 is => 'ro',
20 lazy => 1,
21 1 ▶ default => sub { shift->_get('name') },
Subroutine __ANON__: called CC=1 SCAR=0.0
22 2 );
23  
24  
25 has display_price => (
26 is => 'ro',
27 lazy => 1,
28 1 ▶ default => sub { shift->_get('display_price') },
Subroutine __ANON__: called CC=1 SCAR=0.0
29 2 );
30  
31  
32 has price => (
33 is => 'ro',
34 lazy => 1,
35 0 ▶ default => sub { shift->_get('price') },
Subroutine __ANON__: not called CC=1 SCAR=6.9
36 2 );
37  
38  
39 has image_id => (
40 is => 'ro',
41 lazy => 1,
42 0 ▶ default => sub { shift->_get('image_id') },
Subroutine __ANON__: not called CC=1 SCAR=6.9
43 2 );
44  
45  
46 has unit_quantity => (
47 is => 'ro',
48 lazy => 1,
49 1 ▶ default => sub { shift->_get('unit_quantity') },
Subroutine __ANON__: called CC=1 SCAR=0.0
50 2 );
51  
52  
53 has max_count => (
54 is => 'ro',
55 lazy => 1,
56 0 ▶ default => sub { shift->_get('max_count') },
Subroutine __ANON__: not called CC=1 SCAR=6.9
57 2 );
58  
59  
60 has decorators => (
61 is => 'ro',
62 lazy => 1,
63 0 ▶ default => sub { shift->_get('decorators') || [] },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
(shift())->_get("decorators") or [] 0 0 0
64 2 );
65  
66  
67 2 1;
68  
69 __END__
« Picnic/Result/Login.pm ↑ Summary Picnic/Result/User.pm »