blib/lib/Mail/LMLM/Types/Ezmlm.pm

filter: Statementstmt 30.6% 15 / 49 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 28.5% 4 / 14 Podpod 100% 6 / 6 totaltotal 35.2% 25 / 71 SCAR 12.3
CC
2
Cov
29%
group_form
6.0
_get_subscribe_address
2.0
_get_unsubscribe_address
2.0
CRAP 3.4
« blib/lib/Mail/LMLM/Types/Listar.pm ↑ Summary blib/lib/Mail/LMLM/Render.pm »
1 package Mail::LMLM::Types::Ezmlm;
2 4 $Mail::LMLM::Types::Ezmlm::VERSION = '0.6806';
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶use Mail::LMLM::Types::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 ▶use vars qw(@ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 @ISA = qw(Mail::LMLM::Types::Base);
11  
12 sub group_form
13 {
14 0 ▶ my $self = shift;
Subroutine group_form: not called CC=2 SCAR=17.9
Pod documented
15  
16 0 my $add = shift;
17  
18 0 ▶ return ( ( $self->get_group_base() . ( $add ? ( "-" . $add ) : "" ) ),
Branch: 1 branch
BranchTrueFalseTotal
$add ? : 0 0 0
19 $self->get_hostname() );
20 }
21  
22 sub _get_subscribe_address
23 {
24 0 ▶ my $self = shift;
Subroutine _get_subscribe_address: not called CC=1 SCAR=6.9
25  
26 0 return $self->group_form("subscribe");
27 }
28  
29 sub _get_unsubscribe_address
30 {
31 0 ▶ my $self = shift;
Subroutine _get_unsubscribe_address: not called CC=1 SCAR=6.9
32  
33 0 return $self->group_form("unsubscribe");
34 }
35  
36 sub _get_post_address
37 {
38 0 ▶ my $self = shift;
Subroutine _get_post_address: not called CC=1 SCAR=6.9
39  
40 0 return $self->group_form();
41 }
42  
43 sub _get_owner_address
44 {
45 0 ▶ my $self = shift;
Subroutine _get_owner_address: not called CC=1 SCAR=6.9
46  
47 0 return $self->group_form("owner");
48 }
49  
50 sub render_something_with_email_addr
51 {
52 0 ▶ my $self = shift;
Subroutine render_something_with_email_addr: not called CC=1 SCAR=6.9
Pod documented
53  
54 0 my $htmler = shift;
55 0 my $begin_msg = shift;
56 0 my $address_method = shift;
57  
58 0 $htmler->para($begin_msg);
59 0 $htmler->indent_inc();
60 0 $htmler->start_para();
61 0 $htmler->email_address( $self->$address_method() );
62 0 $htmler->end_para();
63 0 $htmler->indent_dec();
64  
65 0 return 0;
66 }
67  
68 sub render_subscribe
69 {
70 0 ▶ my $self = shift;
Subroutine render_subscribe: not called CC=1 SCAR=6.9
Pod documented
71  
72 0 my $htmler = shift;
73  
74 0 return $self->render_something_with_email_addr( $htmler,
75 "Send an empty mail message to the following address: ",
76 \&_get_subscribe_address );
77 }
78  
79 sub render_unsubscribe
80 {
81 0 ▶ my $self = shift;
Subroutine render_unsubscribe: not called CC=1 SCAR=6.9
Pod documented
82  
83 0 my $htmler = shift;
84  
85 0 return $self->render_something_with_email_addr( $htmler,
86 "Send an empty mail message to the following address: ",
87 \&_get_unsubscribe_address );
88 }
89  
90 sub render_post
91 {
92 0 ▶ my $self = shift;
Subroutine render_post: not called CC=1 SCAR=6.9
Pod documented
93  
94 0 my $htmler = shift;
95  
96 0 return $self->render_something_with_email_addr( $htmler,
97 "Send your messages to the following address: ",
98 \&_get_post_address );
99 }
100  
101 sub render_owner
102 {
103 0 ▶ my $self = shift;
Subroutine render_owner: not called CC=1 SCAR=6.9
Pod documented
104  
105 0 my $htmler = shift;
106  
107 0 return $self->render_something_with_email_addr( $htmler,
108 "Send messages to the mailing-list owner to the following address: ",
109 \&_get_owner_address );
110 }
111  
112 4 1;
113  
114 __END__
« blib/lib/Mail/LMLM/Types/Listar.pm ↑ Summary blib/lib/Mail/LMLM/Render.pm »