blib/lib/Egg/View/Mail/Plugin/Signature.pm

filter: Statementstmt 53.3% 8 / 15 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 38.4% 10 / 26 CC 5 SCAR 30.8
CC
5
Cov
35%
__get_mailbody
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 21.7
« blib/lib/Egg/View/Mail/Mailer/CMD.pm ↑ Summary blib/lib/Egg/View/Mail/Plugin/PortCheck.pm »
1 package Egg::View::Mail::Plugin::Signature;
2 #
3 # Masatoshi Mizuno E<lt>lusheE<64>cpan.orgE<gt>
4 #
5 # $Id: Signature.pm 332 2008-04-19 17:03:10Z lushe $
6 #
7 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 our $VERSION = '0.06';
11  
12 0 ▶sub __get_mailbody {
Subroutine __get_mailbody: not called CC=5 SCAR=34.0
13 0 my($self, $data)= @_;
14 0 ▶ return $self->next::method($data) unless $data->{body};
Branch: 1 branch
BranchTrueFalseTotal
unless $data->{"body"} 0 0 0
15 0 my $body= $data->{body}= $self->__init_mailbody($data);
16 0 ▶ $$body = $data->{body_header}. $$body if $data->{body_header};
Branch: 1 branch
BranchTrueFalseTotal
if $data->{"body_header"} 0 0 0
17 0 ▶ $$body.= "\n$data->{body_footer}" if $data->{body_footer};
Branch: 1 branch
BranchTrueFalseTotal
if $data->{"body_footer"} 0 0 0
18 0 ▶ $$body.= "\n$data->{signature}" if $data->{signature};
Branch: 1 branch
BranchTrueFalseTotal
if $data->{"signature"} 0 0 0
19 0 $self->next::method($data);
20 }
21  
22 2 1;
23  
24 __END__
« blib/lib/Egg/View/Mail/Mailer/CMD.pm ↑ Summary blib/lib/Egg/View/Mail/Plugin/PortCheck.pm »