lib/Mail/DMARC/Report/Aggregate/Record/Identifiers.pm

filter: Statementstmt 100% 32 / 32 Branchbran 87.5% 7 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 0.0% 0 / 4 totaltotal 90.5% 48 / 53 CC 9 SCAR 8.8
CC
9
Cov
98%
new
3.0
envelope_to
3.0
envelope_from
3.0
CRAP 2.4
« lib/Mail/DMARC/Report/Aggregate/Metadata.pm ↑ Summary lib/Mail/DMARC/Report.pm »
1 package Mail::DMARC::Report::Aggregate::Record::Identifiers;
2 16 our $VERSION = '2.20261110';
3 16 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 16 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 16 ▶use feature 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 16 ▶no warnings 'experimental::args_array_with_signatures'; ## no critic (ProhibitNoWarnings)
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 16 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 57 ▶sub new( $class, @args ) {
Subroutine new: called CC=3 SCAR=11.0
Pod undocumented
11 57 ▶ croak "invalid arguments" if @args % 2;
Branch: 1 branch
BranchTrueFalseTotal
if @args % 2 0 57 57
12 57 my %args = @args;
13 57 my $self = bless {}, $class;
14 57 foreach my $key ( keys %args ) {
15 161 $self->$key( $args{$key} );
16 }
17 57 return $self;
18 }
19  
20 127 ▶sub envelope_to( $self, $value = undef ) {
Subroutine envelope_to: called CC=3 SCAR=11.0
Pod undocumented
21 127 ▶ return $self->{envelope_to} if @_ == 1;
Branch: 1 branch
BranchTrueFalseTotal
if @_ == 1 74 53 127
22 53 return $self->{envelope_to} = $value;
23 }
24  
25 129 ▶sub envelope_from( $self, $value = undef ) {
Subroutine envelope_from: called CC=3 SCAR=11.0
Pod undocumented
26 129 ▶ return $self->{envelope_from} if @_ == 1;
Branch: 1 branch
BranchTrueFalseTotal
if @_ == 1 74 55 129
27 55 return $self->{envelope_from} = $value;
28 }
29  
30 134 ▶sub header_from( $self, $value = undef ) {
Subroutine header_from: called CC=3 SCAR=11.0
Pod undocumented
31 134 ▶ return $self->{header_from} if @_ == 1;
Branch: 1 branch
BranchTrueFalseTotal
if @_ == 1 76 58 134
32 58 return $self->{header_from} = $value;
33 }
34  
35 16 1;
36  
37 __END__
« lib/Mail/DMARC/Report/Aggregate/Metadata.pm ↑ Summary lib/Mail/DMARC/Report.pm »