Sietima/Role/WithPostAddress.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Sietima/Role/WithOwner.pm ↑ Summary Sietima/Subscriber.pm »
1 package Sietima::Role::WithPostAddress;
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 a posting address
9  
10  
11 4 has post_address => (
12 is => 'lazy',
13 isa => Address,
14 coerce => AddressFromStr,
15 );
16 5 ▶sub _build_post_address($self) { $self->return_path }
Subroutine _build_post_address: called CC=1 SCAR=0.0
17  
18 1 ▶around list_addresses => sub($orig,$self) {
Subroutine __ANON__: called CC=1 SCAR=0.0
19 return +{
20 1 $self->$orig->%*,
21 post => $self->post_address,
22 };
23 4 };
24  
25 4 1;
26  
27 __END__
« Sietima/Role/WithOwner.pm ↑ Summary Sietima/Subscriber.pm »