blib/lib/Mail/LMLM/Render.pm

filter: Statementstmt 40.5% 15 / 37 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 100% 3 / 3 totaltotal 44.9% 22 / 49 SCAR 10.8
CC
2
Cov
38%
url
6.0
para
2.0
email_address
2.0
CRAP 2.9
« blib/lib/Mail/LMLM/Types/Ezmlm.pm ↑ Summary blib/lib/Mail/LMLM/Types/Listserv.pm »
1 package Mail::LMLM::Render;
2 4 $Mail::LMLM::Render::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 vars qw(@ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 ▶use Mail::LMLM::Object;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 @ISA = qw(Mail::LMLM::Object);
11  
12 sub para
13 {
14 0 ▶ my $self = shift;
Subroutine para: not called CC=1 SCAR=6.9
Pod documented
15  
16 0 $self->start_para();
17 0 $self->text(@_);
18 0 $self->end_para();
19  
20 0 return 0;
21 }
22  
23 sub url
24 {
25 0 ▶ my $self = shift;
Subroutine url: not called CC=2 SCAR=17.9
Pod documented
26  
27 0 my $url = shift;
28  
29 0 my $inside;
30  
31 0 ▶ if ( scalar(@_) )
Branch: 1 branch
BranchTrueFalseTotal
if (scalar @_) { } 0 0 0
32 {
33 0 $inside = shift;
34 }
35 else
36 {
37 0 $inside = $url;
38 }
39  
40 0 $self->start_link($url);
41 0 $self->text($inside);
42 0 $self->end_link();
43  
44 0 return 0;
45 }
46  
47 sub email_address
48 {
49 0 ▶ my $self = shift;
Subroutine email_address: not called CC=1 SCAR=6.9
Pod documented
50  
51 0 my $account = shift;
52 0 my $host = shift;
53  
54 0 $self->start_link("mailto:$account\@$host");
55 0 $self->text("$account\@$host");
56 0 $self->end_link();
57  
58 0 return 0;
59 }
60  
61 4 1;
62  
63 __END__
« blib/lib/Mail/LMLM/Types/Ezmlm.pm ↑ Summary blib/lib/Mail/LMLM/Types/Listserv.pm »