lib/Mail/AuthenticationResults/Token.pm

filter: Statementstmt 100% 28 / 30 (2 uncoverable) Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 9 (1 uncoverable) Podpod 100% 6 / 6 totaltotal 100% 42 / 45 (3 uncoverable) CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Mail/AuthenticationResults/Token/Separator.pm ↑ Summary lib/Mail/AuthenticationResults/Token/Space.pm »
1 package Mail::AuthenticationResults::Token;
2 # ABSTRACT: Base class for modelling AuthenticationResults Header parts
3  
4 31 require 5.008;
5 31 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 31 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 31 our $VERSION = '2.20260216'; # VERSION
8 31 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 1271 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 1271 my ( $class, $header, $args ) = @_;
13  
14 1271 my $self = { 'args' => $args };
15 1271 bless $self, $class;
16  
17 1271 $self->{ 'header' } = $header;
18 1271 $self->parse();
19  
20 1256 return $self;
21 }
22  
23  
24 1540 ▶sub new_from_value {
Subroutine new_from_value: called CC=1 SCAR=0.0
Pod documented
25 1540 my ( $class, $value ) = @_;
26  
27 1540 my $self = { 'value' => $value };
28 1540 bless $self, $class;
29  
30 1540 return $self;
31 }
32  
33  
34 3718 ▶sub value {
Subroutine value: called CC=1 SCAR=0.0
Pod documented
35 3718 my ( $self ) = @_;
36 3718 return $self->{ 'value' };
37 }
38  
39  
40 1256 ▶sub remainder {
Subroutine remainder: called CC=1 SCAR=0.0
Pod documented
41 1256 my ( $self ) = @_;
42 1256 return $self->{ 'header' };
43 }
44  
45  
46 1 ▶sub parse {
Subroutine parse: called CC=1 SCAR=0.0
Pod documented
47 1 my ( $self ) = @_;
48 1 croak 'parse not implemented';
49 }
50  
51  
52 0 ▶sub is { # uncoverable subroutine
Subroutine is: not called (uncoverable) CC=1 SCAR=0.0
Pod documented
53 # a base Token cannot be instantiated, and all subclasses should implement this method.
54 0 my ( $self ) = @_; # uncoverable statement
55 0 croak 'is not implemented'; # uncoverable statement
56 }
57  
58 31 1;;
59  
60 __END__
« lib/Mail/AuthenticationResults/Token/Separator.pm ↑ Summary lib/Mail/AuthenticationResults/Token/Space.pm »