File Coverage

lib/Mail/AuthenticationResults/Header/Entry.pm
Criterion Covered Total %
statement 23 23 100.0
branch 6 6 100.0
condition n/a
subroutine 9 9 100.0
pod n/a
total 38 38 100.0


line stmt bran cond sub pod time code
1             package Mail::AuthenticationResults::Header::Entry;
2             # ABSTRACT: Class modelling Main Entry parts of the Authentication Results Header
3              
4             require 5.008;
5 30     30   225 use strict;
  30         75  
  30         1159  
6 30     30   141 use warnings;
  30         58  
  30         2109  
7             our $VERSION = '2.20260216'; # VERSION
8 30     30   182 use Scalar::Util qw{ refaddr };
  30         45  
  30         1771  
9 30     30   176 use Carp;
  30         41  
  30         1819  
10              
11 30     30   208 use base 'Mail::AuthenticationResults::Header::Base';
  30         130  
  30         7243  
12              
13              
14 817     817   2487 sub _HAS_KEY{ return 1; }
15 774     774   5823 sub _HAS_VALUE{ return 1; }
16 1169     1169   3096 sub _HAS_CHILDREN{ return 1; }
17              
18             sub _ALLOWED_CHILDREN {
19 462     462   824 my ( $self, $child ) = @_;
20 462 100       1357 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Comment';
21 344 100       1155 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::SubEntry';
22 13 100       32 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Version';
23 6         48 return 0;
24             }
25              
26             1;
27              
28             __END__