blib/lib/Mail/AuthenticationResults/Header/AuthServID.pm untested

filter: Statementstmt 0.0% 0 / 31 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 50 CC 4 SCAR 20.8
CC
4
Cov
0%
_ALLOWED_CHILDREN
20.0
_HAS_VALUE
2.0
_HAS_CHILDREN
2.0
CRAP 8.0
1 package Mail::AuthenticationResults::Header::AuthServID;
2 # ABSTRACT: Class modelling the AuthServID part of the Authentication Results Headerr
3  
4 require 5.008;
5 use strict;
6 use warnings;
7 our $VERSION = '2.20260216'; # VERSION
8 use Carp;
9  
10 use base 'Mail::AuthenticationResults::Header::Base';
11  
12  
13 sub _HAS_VALUE{ return 1; }
14  
15 sub _HAS_CHILDREN{ return 1; }
16  
17 sub _ALLOWED_CHILDREN {
18 my ( $self, $child ) = @_;
19 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Comment';
20 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::SubEntry';
21 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Version';
22 return 0;
23 }
24  
25 sub build_string {
26 my ( $self, $header ) = @_;
27  
28 $header->string( $self->stringify( $self->value() ) );
29 foreach my $child ( @{ $self->children() } ) {
30 $header->space( ' ' );
31 #$header->concat( $child->as_string_prefix() );
32 $child->build_string( $header );
33 }
34  
35 return;
36 }
37  
38 1;
39  
40 __END__