File Coverage

lib/Mail/AuthenticationResults/Header/SubEntry.pm
Criterion Covered Total %
statement 19 19 100.0
branch 4 4 100.0
condition n/a
subroutine 8 8 100.0
pod n/a
total 31 31 100.0


line stmt bran cond sub pod time code
1             package Mail::AuthenticationResults::Header::SubEntry;
2             # ABSTRACT: Class modelling Sub Entry parts of the Authentication Results Header
3              
4             require 5.008;
5 30     30   190 use strict;
  30         52  
  30         1123  
6 30     30   133 use warnings;
  30         76  
  30         2000  
7             our $VERSION = '2.20260216'; # VERSION
8 30     30   219 use Carp;
  30         59  
  30         2241  
9              
10 30     30   197 use base 'Mail::AuthenticationResults::Header::Base';
  30         108  
  30         7509  
11              
12              
13 1415     1415   4351 sub _HAS_KEY{ return 1; }
14 1219     1219   4772 sub _HAS_VALUE{ return 1; }
15 1451     1451   3173 sub _HAS_CHILDREN{ return 1; }
16              
17             sub _ALLOWED_CHILDREN {
18 58     58   113 my ( $self, $child ) = @_;
19 58 100       208 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Comment';
20 12 100       23 return 1 if ref $child eq 'Mail::AuthenticationResults::Header::Version';
21 7         104 return 0;
22             }
23              
24             1;
25              
26             __END__