blib/lib/Mail/AuthenticationResults/Token.pm untested

filter: Statementstmt 0.0% 0 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 50 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
new_from_value
2.0
value
2.0
CRAP 2.0
1 package Mail::AuthenticationResults::Token;
2 # ABSTRACT: Base class for modelling AuthenticationResults Header parts
3  
4 require 5.008;
5 use strict;
6 use warnings;
7 our $VERSION = '2.20260216'; # VERSION
8 use Carp;
9  
10  
11 sub new {
12 my ( $class, $header, $args ) = @_;
13  
14 my $self = { 'args' => $args };
15 bless $self, $class;
16  
17 $self->{ 'header' } = $header;
18 $self->parse();
19  
20 return $self;
21 }
22  
23  
24 sub new_from_value {
25 my ( $class, $value ) = @_;
26  
27 my $self = { 'value' => $value };
28 bless $self, $class;
29  
30 return $self;
31 }
32  
33  
34 sub value {
35 my ( $self ) = @_;
36 return $self->{ 'value' };
37 }
38  
39  
40 sub remainder {
41 my ( $self ) = @_;
42 return $self->{ 'header' };
43 }
44  
45  
46 sub parse {
47 my ( $self ) = @_;
48 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 my ( $self ) = @_; # uncoverable statement
55 croak 'is not implemented'; # uncoverable statement
56 }
57  
58 1;;
59  
60 __END__