File Coverage

lib/Mail/AuthenticationResults/Header/AuthServID.pm
Criterion Covered Total %
statement 26 26 100.0
branch 6 6 100.0
condition n/a
subroutine 8 8 100.0
pod 1 1 100.0
total 41 41 100.0


line stmt bran cond sub pod time code
1             package Mail::AuthenticationResults::Header::AuthServID;
2             # ABSTRACT: Class modelling the AuthServID part of the Authentication Results Headerr
3              
4             require 5.008;
5 29     29   203 use strict;
  29         88  
  29         1220  
6 29     29   195 use warnings;
  29         51  
  29         1804  
7             our $VERSION = '2.20260216'; # VERSION
8 29     29   181 use Carp;
  29         54  
  29         2074  
9              
10 29     29   300 use base 'Mail::AuthenticationResults::Header::Base';
  29         80  
  29         17492  
11              
12              
13 159     159   2665 sub _HAS_VALUE{ return 1; }
14              
15 78     78   237 sub _HAS_CHILDREN{ return 1; }
16              
17             sub _ALLOWED_CHILDREN {
18 40     40   54 my ( $self, $child ) = @_;
19 40 100       106 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Comment';
20 26 100       61 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::SubEntry';
21 15 100       38 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Version';
22 6         52 return 0;
23             }
24              
25             sub build_string {
26 44     44 1 119 my ( $self, $header ) = @_;
27              
28 44         156 $header->string( $self->stringify( $self->value() ) );
29 44         80 foreach my $child ( @{ $self->children() } ) {
  44         240  
30 8         25 $header->space( ' ' );
31             #$header->concat( $child->as_string_prefix() );
32 8         24 $child->build_string( $header );
33             }
34              
35 44         165 return;
36             }
37              
38             1;
39              
40             __END__