line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mail::AuthenticationResults::Token; |
2
|
|
|
|
|
|
|
# ABSTRACT: Base class for modelling AuthenticationResults Header parts |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
require 5.008; |
5
|
29
|
|
|
29
|
|
70656
|
use strict; |
|
29
|
|
|
|
|
88
|
|
|
29
|
|
|
|
|
798
|
|
6
|
29
|
|
|
29
|
|
136
|
use warnings; |
|
29
|
|
|
|
|
56
|
|
|
29
|
|
|
|
|
1085
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2.20210915'; # VERSION |
8
|
29
|
|
|
29
|
|
191
|
use Carp; |
|
29
|
|
|
|
|
66
|
|
|
29
|
|
|
|
|
8181
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
1189
|
|
|
1189
|
1
|
19966
|
my ( $class, $header, $args ) = @_; |
13
|
|
|
|
|
|
|
|
14
|
1189
|
|
|
|
|
2293
|
my $self = { 'args' => $args }; |
15
|
1189
|
|
|
|
|
1815
|
bless $self, $class; |
16
|
|
|
|
|
|
|
|
17
|
1189
|
|
|
|
|
1964
|
$self->{ 'header' } = $header; |
18
|
1189
|
|
|
|
|
2786
|
$self->parse(); |
19
|
|
|
|
|
|
|
|
20
|
1175
|
|
|
|
|
2086
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub new_from_value { |
25
|
1242
|
|
|
1242
|
1
|
2634
|
my ( $class, $value ) = @_; |
26
|
|
|
|
|
|
|
|
27
|
1242
|
|
|
|
|
2509
|
my $self = { 'value' => $value }; |
28
|
1242
|
|
|
|
|
1839
|
bless $self, $class; |
29
|
|
|
|
|
|
|
|
30
|
1242
|
|
|
|
|
2511
|
return $self; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub value { |
35
|
3210
|
|
|
3210
|
1
|
6704
|
my ( $self ) = @_; |
36
|
3210
|
|
|
|
|
8225
|
return $self->{ 'value' }; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub remainder { |
41
|
1175
|
|
|
1175
|
1
|
1751
|
my ( $self ) = @_; |
42
|
1175
|
|
|
|
|
2089
|
return $self->{ 'header' }; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub parse { |
47
|
1
|
|
|
1
|
1
|
2
|
my ( $self ) = @_; |
48
|
1
|
|
|
|
|
24
|
croak 'parse not implemented'; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub is { # uncoverable subroutine |
53
|
|
|
|
|
|
|
# a base Token cannot be instantiated, and all subclasses should implement this method. |
54
|
0
|
|
|
0
|
1
|
|
my ( $self ) = @_; # uncoverable statement |
55
|
0
|
|
|
|
|
|
croak 'is not implemented'; # uncoverable statement |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
1;; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
__END__ |