LMLM/Types/Listserv.pm

filter: Statementstmt 32.6% 15 / 46 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 36.3% 4 / 11 Podpod 100% 5 / 5 totaltotal 38.7% 24 / 62 CC 1 SCAR 4.9
CC
1
Cov
33%
_get_post_address
2.0
_get_owner_address
2.0
render_mail_management
2.0
CRAP 1.6
« LMLM/Object.pm ↑ Summary
1 package Mail::LMLM::Types::Listserv;
2 3 $Mail::LMLM::Types::Listserv::VERSION = '0.6807';
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Mail::LMLM::Types::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use vars qw(@ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 @ISA = qw(Mail::LMLM::Types::Base);
11  
12 sub _get_post_address
13 0 ▶{
Subroutine _get_post_address: not called CC=1 SCAR=6.9
14 0 my $self = shift;
15  
16 0 return ( $self->get_group_base(), $self->get_hostname() );
17 }
18  
19 sub _get_owner_address
20 0 ▶{
Subroutine _get_owner_address: not called CC=1 SCAR=6.9
21 0 my $self = shift;
22  
23 0 return ( ( 'owner-' . $self->get_group_base() ), $self->get_hostname() );
24 }
25  
26 sub render_mail_management
27 0 ▶{
Subroutine render_mail_management: not called CC=1 SCAR=6.9
Pod documented
28 0 my $self = shift;
29  
30 0 my $htmler = shift;
31 0 my $begin_msg = shift;
32 0 my $line_prefix = shift;
33  
34 0 $htmler->para(
35 $begin_msg . " write a message with the following line as body:" );
36 0 $htmler->indent_inc();
37 0 $htmler->para( ( $line_prefix . " " . $self->get_group_base() ),
38 { 'bold' => 1 } );
39 0 $htmler->indent_dec();
40 0 $htmler->para("to the following address:");
41 0 $htmler->indent_inc();
42 0 $htmler->start_para();
43 0 $htmler->email_address( "listserv", $self->get_hostname() );
44 0 $htmler->end_para();
45 0 $htmler->indent_dec();
46  
47 0 return 0;
48 }
49  
50 sub render_subscribe
51 0 ▶{
Subroutine render_subscribe: not called CC=1 SCAR=6.9
Pod documented
52 0 my $self = shift;
53  
54 0 my $htmler = shift;
55  
56 0 return $self->render_mail_management( $htmler, "To subscribe",
57 "subscribe" );
58 }
59  
60 sub render_unsubscribe
61 0 ▶{
Subroutine render_unsubscribe: not called CC=1 SCAR=6.9
Pod documented
62 0 my $self = shift;
63  
64 0 my $htmler = shift;
65  
66 0 return $self->render_mail_management( $htmler, "To unsubscribe",
67 "signoff" );
68 }
69  
70 sub render_post
71 0 ▶{
Subroutine render_post: not called CC=1 SCAR=6.9
Pod documented
72 0 my $self = shift;
73  
74 0 my $htmler = shift;
75  
76 0 return $self->render_something_with_email_addr( $htmler,
77 "Send your messages to the following address: ",
78 \&_get_post_address );
79 }
80  
81 sub render_owner
82 0 ▶{
Subroutine render_owner: not called CC=1 SCAR=6.9
Pod documented
83 0 my $self = shift;
84  
85 0 my $htmler = shift;
86  
87 0 return $self->render_something_with_email_addr( $htmler,
88 "Send messages to the mailing-list owner to the following address: ",
89 \&_get_owner_address );
90 }
91  
92 3 1;
93  
94 __END__
« LMLM/Object.pm ↑ Summary