Sietima/Role/WithOwner.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Sietima/Role/WithMailStore.pm ↑ Summary Sietima/Role/WithPostAddress.pm »
1 package Sietima::Role::WithOwner;
2 4 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use Sietima::Policy;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use Sietima::Types qw(Address AddressFromStr);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 our $VERSION = '1.1.5'; # VERSION
8 # ABSTRACT: role for lists with an owner
9  
10  
11 4 has owner => (
12 is => 'ro',
13 isa => Address,
14 required => 1,
15 coerce => AddressFromStr,
16 );
17  
18  
19 3 ▶around list_addresses => sub($orig,$self) {
Subroutine __ANON__: called CC=1 SCAR=0.0
20 return +{
21 3 $self->$orig->%*,
22 owner => $self->owner,
23 };
24 4 };
25  
26 4 1;
27  
28 __END__
« Sietima/Role/WithMailStore.pm ↑ Summary Sietima/Role/WithPostAddress.pm »