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 CC 3 SCAR 4.7
CC
3
Cov
100%
_ALLOWED_CHILDREN
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.6
« lib/Mail/AuthenticationResults/Token/QuotedString.pm ↑ Summary lib/Mail/AuthenticationResults/Token/Separator.pm »
1 package Mail::AuthenticationResults::Header::SubEntry;
2 # ABSTRACT: Class modelling Sub Entry parts of the Authentication Results Header
3  
4 31 require 5.008;
5 31 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 31 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 31 our $VERSION = '2.20261029'; # VERSION
8 31 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 31 ▶use base 'Mail::AuthenticationResults::Header::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13 11418 ▶sub _HAS_KEY{ return 1; }
Subroutine _HAS_KEY: called CC=1 SCAR=0.0
14 4553 ▶sub _HAS_VALUE{ return 1; }
Subroutine _HAS_VALUE: called CC=1 SCAR=0.0
15 1455 ▶sub _HAS_CHILDREN{ return 1; }
Subroutine _HAS_CHILDREN: called CC=1 SCAR=0.0
16  
17 58 ▶sub _ALLOWED_CHILDREN {
Subroutine _ALLOWED_CHILDREN: called CC=3 SCAR=11.0
18 58 my ( $self, $child ) = @_;
19 58 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Comment';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::Comment" 46 12 58
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 31 1;
25  
26 __END__
« lib/Mail/AuthenticationResults/Token/QuotedString.pm ↑ Summary lib/Mail/AuthenticationResults/Token/Separator.pm »