lib/Mail/AuthenticationResults/Header/Entry.pm

filter: Statementstmt 100% 26 / 26 Branchbran 100% 6 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 100% 41 / 41 SCAR 13.9
CC
4
Cov
100%
_ALLOWED_CHILDREN
4.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.0
« lib/Mail/AuthenticationResults/Token/QuotedString.pm ↑ Summary lib/Mail/AuthenticationResults/Token/Assignment.pm »
1 package Mail::AuthenticationResults::Header::Entry;
2 # ABSTRACT: Class modelling Main 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 Scalar::Util qw{ refaddr };
Subroutine BEGIN: called CC=1 SCAR=0.0
9 28 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 28 ▶use base 'Mail::AuthenticationResults::Header::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13  
14 784 ▶sub _HAS_KEY{ return 1; }
Subroutine _HAS_KEY: called CC=1 SCAR=0.0
15 740 ▶sub _HAS_VALUE{ return 1; }
Subroutine _HAS_VALUE: called CC=1 SCAR=0.0
16 1104 ▶sub _HAS_CHILDREN{ return 1; }
Subroutine _HAS_CHILDREN: called CC=1 SCAR=0.0
17  
18 sub _ALLOWED_CHILDREN {
19 458 ▶ my ( $self, $child ) = @_;
Subroutine _ALLOWED_CHILDREN: called CC=4 SCAR=13.9
20 458 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Comment';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::Comment" 118 340 458
21 340 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::SubEntry';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::SubEntry" 327 13 340
22 13 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Version';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::Version" 7 6 13
23 6 return 0;
24 }
25  
26 28 1;
27  
28 __END__
« lib/Mail/AuthenticationResults/Token/QuotedString.pm ↑ Summary lib/Mail/AuthenticationResults/Token/Assignment.pm »