Mail/ESMTP/Extension.pm

filter: Statementstmt 90.9% 20 / 22 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 80.0% 8 / 10 Podpod 0.0% 0 / 7 totaltotal 65.9% 29 / 44 CC 2 SCAR 3.2
CC
2
Cov
84%
new
2.1
verb
2.0
keyword
2.0
CRAP 1.4
« Mail/ESMTP/8BITMIME.pm ↑ Summary
1 package Net::Server::Mail::ESMTP::Extension;
2  
3 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 our $VERSION = "0.26";
8  
9 =pod
10  
11 =head1 NAME
12  
13 Net::Server::Mail::ESMTP::Extension - The base class for ESMTP extension system
14  
15 =head1 DESCRIPTION
16  
17 =cut
18  
19 7 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
20 7 my ( $proto, $parent ) = @_;
21 7 ▶ my $class = ref $proto || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
070
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
22 7 my $self = {};
23 7 bless( $self, $class );
24 7 return $self->init($parent);
25 }
26  
27 =pod
28  
29 =head1 init
30  
31 ($self) = $obj->init($parent);
32  
33 You can override this method to do something at the
34 initialisation. The method takes the $smtp object as parameter.
35  
36 =cut
37  
38 7 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
39 7 my ( $self, $parent ) = @_;
40 7 return $self;
41 }
42  
43 =pod
44  
45 =head1 verb
46  
47 =cut
48  
49 0 ▶sub verb {
Subroutine verb: not called CC=1 SCAR=6.9
Pod undocumented
50 0 return ();
51 }
52  
53 =pod
54  
55 =head1 keyword
56  
57 =cut
58  
59 0 ▶sub keyword {
Subroutine keyword: not called CC=1 SCAR=6.9
Pod undocumented
60 0 return 'XNOTOVERLOADED';
61 }
62  
63 =pod
64  
65 =head1 parameter
66  
67 =cut
68  
69 9 ▶sub parameter {
Subroutine parameter: called CC=1 SCAR=0.0
Pod undocumented
70 9 return ();
71 }
72  
73 =pod
74  
75 =head1 option
76  
77 =cut
78  
79 7 ▶sub option {
Subroutine option: called CC=1 SCAR=0.0
Pod undocumented
80 7 return ();
81 }
82  
83 =pod
84  
85 =head1 reply
86  
87 =cut
88  
89 7 ▶sub reply {
Subroutine reply: called CC=1 SCAR=0.0
Pod undocumented
90 7 return ();
91 }
92  
93 2 1;
« Mail/ESMTP/8BITMIME.pm ↑ Summary