lib/Mail/AuthenticationResults/Header/AuthServID.pm

filter: Statementstmt 100% 29 / 29 Branchbran 100% 6 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 1 / 1 totaltotal 100% 44 / 44 CC 5 SCAR 7.7
CC
5
Cov
100%
_ALLOWED_CHILDREN
4.0
build_string
2.0
BEGIN
1.0
CRAP 2.2
« lib/Mail/AuthenticationResults/Token/Assignment.pm ↑ Summary blib/lib/Mail/AuthenticationResults.pm »
1 package Mail::AuthenticationResults::Header::AuthServID;
2 # ABSTRACT: Class modelling the AuthServID part of the Authentication Results Headerr
3  
4 30 require 5.008;
5 30 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 30 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 30 our $VERSION = '2.20261029'; # VERSION
8 30 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 30 ▶use base 'Mail::AuthenticationResults::Header::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13 161 ▶sub _HAS_VALUE{ return 1; }
Subroutine _HAS_VALUE: called CC=1 SCAR=0.0
14  
15 78 ▶sub _HAS_CHILDREN{ return 1; }
Subroutine _HAS_CHILDREN: called CC=1 SCAR=0.0
16  
17 40 ▶sub _ALLOWED_CHILDREN {
Subroutine _ALLOWED_CHILDREN: called CC=4 SCAR=13.9
18 40 my ( $self, $child ) = @_;
19 40 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Comment';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::Comment" 14 26 40
20 26 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::SubEntry';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::SubEntry" 11 15 26
21 15 ▶ return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Version';
Branch: 1 branch
BranchTrueFalseTotal
if ref $child eq "Mail::AuthenticationResults::Header::Version" 9 6 15
22 6 return 0;
23 }
24  
25 44 ▶sub build_string {
Subroutine build_string: called CC=2 SCAR=6.9
Pod documented
26 44 my ( $self, $header ) = @_;
27  
28 44 $header->string( $self->stringify( $self->value() ) );
29 44 foreach my $child ( @{ $self->children() } ) {
30 8 $header->space( ' ' );
31 #$header->concat( $child->as_string_prefix() );
32 8 $child->build_string( $header );
33 }
34  
35 44 return;
36 }
37  
38 30 1;
39  
40 __END__
« lib/Mail/AuthenticationResults/Token/Assignment.pm ↑ Summary blib/lib/Mail/AuthenticationResults.pm »