lib/Mail/AuthenticationResults/Header/SubEntry.pm

filter: Statementstmt 100% 22 / 22 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 34 / 34 SCAR 11.0
CC
3
Cov
100%
_ALLOWED_CHILDREN
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« lib/Mail/AuthenticationResults/Token/Assignment.pm ↑ Summary blib/lib/Mail/AuthenticationResults.pm »
1 package Mail::AuthenticationResults::Header::SubEntry;
2 # ABSTRACT: Class modelling Sub Entry parts of the Authentication Results Header
3  
4 28 require 5.008;
5 28 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 28 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 28 our $VERSION = '2.20230112'; # VERSION
8 28 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 28 ▶use base 'Mail::AuthenticationResults::Header::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13 1389 ▶sub _HAS_KEY{ return 1; }
Subroutine _HAS_KEY: called CC=1 SCAR=0.0
14 1192 ▶sub _HAS_VALUE{ return 1; }
Subroutine _HAS_VALUE: called CC=1 SCAR=0.0
15 1410 ▶sub _HAS_CHILDREN{ return 1; }
Subroutine _HAS_CHILDREN: called CC=1 SCAR=0.0
16  
17 sub _ALLOWED_CHILDREN {
18 56 ▶ my ( $self, $child ) = @_;
Subroutine _ALLOWED_CHILDREN: called CC=3 SCAR=11.0
19 56 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Comment';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::Comment" 44 12 56
20 12 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Version';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::Version" 5 7 12
21 7 return 0;
22 }
23  
24 28 1;
25  
26 __END__
« lib/Mail/AuthenticationResults/Token/Assignment.pm ↑ Summary blib/lib/Mail/AuthenticationResults.pm »