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 CC 4 SCAR 6.9
CC
4
Cov
100%
_ALLOWED_CHILDREN
4.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« blib/lib/Mail/AuthenticationResults.pm ↑ Summary lib/Mail/AuthenticationResults/Token/QuotedString.pm »
1 package Mail::AuthenticationResults::Header::Entry;
2 # ABSTRACT: Class modelling Main 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 Scalar::Util qw{ refaddr };
Subroutine BEGIN: called CC=1 SCAR=0.0
9 31 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 31 ▶use base 'Mail::AuthenticationResults::Header::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13  
14 2820 ▶sub _HAS_KEY{ return 1; }
Subroutine _HAS_KEY: called CC=1 SCAR=0.0
15 2775 ▶sub _HAS_VALUE{ return 1; }
Subroutine _HAS_VALUE: called CC=1 SCAR=0.0
16 5837 ▶sub _HAS_CHILDREN{ return 1; }
Subroutine _HAS_CHILDREN: called CC=1 SCAR=0.0
17  
18 9794 ▶sub _ALLOWED_CHILDREN {
Subroutine _ALLOWED_CHILDREN: called CC=4 SCAR=13.9
19 9794 my ( $self, $child ) = @_;
20 9794 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Comment';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::Comment" 2784 7010 9794
21 7010 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::SubEntry';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::SubEntry" 6997 13 7010
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 31 1;
27  
28 __END__
« blib/lib/Mail/AuthenticationResults.pm ↑ Summary lib/Mail/AuthenticationResults/Token/QuotedString.pm »