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
|
30
|
|
|
30
|
|
77882
|
use strict; |
|
30
|
|
|
|
|
71
|
|
|
30
|
|
|
|
|
848
|
|
6
|
30
|
|
|
30
|
|
152
|
use warnings; |
|
30
|
|
|
|
|
78
|
|
|
30
|
|
|
|
|
1158
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2.20230112'; # VERSION |
8
|
30
|
|
|
30
|
|
200
|
use Carp; |
|
30
|
|
|
|
|
101
|
|
|
30
|
|
|
|
|
9232
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
1263
|
|
|
1263
|
1
|
18754
|
my ( $class, $header, $args ) = @_; |
13
|
|
|
|
|
|
|
|
14
|
1263
|
|
|
|
|
2519
|
my $self = { 'args' => $args }; |
15
|
1263
|
|
|
|
|
1899
|
bless $self, $class; |
16
|
|
|
|
|
|
|
|
17
|
1263
|
|
|
|
|
2089
|
$self->{ 'header' } = $header; |
18
|
1263
|
|
|
|
|
3007
|
$self->parse(); |
19
|
|
|
|
|
|
|
|
20
|
1249
|
|
|
|
|
2349
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub new_from_value { |
25
|
1375
|
|
|
1375
|
1
|
2811
|
my ( $class, $value ) = @_; |
26
|
|
|
|
|
|
|
|
27
|
1375
|
|
|
|
|
2776
|
my $self = { 'value' => $value }; |
28
|
1375
|
|
|
|
|
1948
|
bless $self, $class; |
29
|
|
|
|
|
|
|
|
30
|
1375
|
|
|
|
|
2787
|
return $self; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub value { |
35
|
3484
|
|
|
3484
|
1
|
6796
|
my ( $self ) = @_; |
36
|
3484
|
|
|
|
|
8784
|
return $self->{ 'value' }; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub remainder { |
41
|
1249
|
|
|
1249
|
1
|
1842
|
my ( $self ) = @_; |
42
|
1249
|
|
|
|
|
2206
|
return $self->{ 'header' }; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub parse { |
47
|
1
|
|
|
1
|
1
|
5
|
my ( $self ) = @_; |
48
|
1
|
|
|
|
|
38
|
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__ |