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

filter: Statementstmt 51.7% 15 / 29 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 4 / 8 Podpod 100% 4 / 4 totaltotal 48.9% 23 / 47 CC 4 SCAR 13.4
CC
4
Cov
43%
initialize
6.0
get_homepage
6.0
get_online_archive
6.0
CRAP 3.8
« blib/lib/Mail/LMLM/Types/Majordomo.pm ↑ Summary blib/lib/Mail/LMLM/Render.pm »
1 package Mail::LMLM::Types::Egroups;
2 3 $Mail::LMLM::Types::Egroups::VERSION = '0.6805';
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::Ezmlm;
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::Ezmlm);
11  
12 sub initialize
13 {
14 0 ▶ my $self = shift;
Subroutine initialize: not called CC=2 SCAR=17.9
Pod documented
15  
16 0 $self->SUPER::initialize(@_);
17  
18 0 ▶ if (! exists($self->{'hostname'}) )
Branch: 1 branch
BranchTrueFalseTotal
if (not exists $self->{"hostname"}) 0 0 0
19 {
20 0 $self->{'hostname'} = "yahoogroups.com";
21 }
22 }
23  
24 sub get_homepage_hostname
25 {
26 0 ▶ my $self = shift;
Subroutine get_homepage_hostname: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 return "groups.yahoo.com";
29 }
30  
31 sub get_homepage
32 {
33 0 ▶ my $self = shift;
Subroutine get_homepage: not called CC=2 SCAR=17.9
Pod documented
34  
35 0 ▶ if ( exists($self->{'homepage'}) )
Branch: 1 branch
BranchTrueFalseTotal
if (exists $self->{'homepage'}) { } 0 0 0
36 {
37 0 return $self->{'homepage'};
38 }
39 else
40 {
41 0 return "http://" . $self->get_homepage_hostname() .
42 "/group/" . $self->get_group_base() . "/";
43 }
44 }
45  
46 sub get_online_archive
47 {
48 0 ▶ my $self = shift;
Subroutine get_online_archive: not called CC=2 SCAR=17.9
Pod documented
49  
50 0 ▶ if ( exists($self->{'online_archive'}) )
Branch: 1 branch
BranchTrueFalseTotal
if (exists $self->{'online_archive'}) { } 0 0 0
51 {
52 0 return $self->{'online_archive'};
53 }
54 else
55 {
56 0 return $self->get_homepage() . "messages/";
57 }
58 }
59  
60 3 1;
61  
62 __END__
« blib/lib/Mail/LMLM/Types/Majordomo.pm ↑ Summary blib/lib/Mail/LMLM/Render.pm »