Mail/Mailer/rfc822.pm

filter: Statementstmt 57.8% 11 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 53.8% 14 / 26 SCAR 17.5
CC
4
Cov
52%
set_headers
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
« Mail/Mailer/testfile.pm ↑ Summary Mail/Field/Generic.pm »
1 # Copyrights 1995-2019 by [Mark Overmeer <markov@cpan.org>].
2 # For other contributors see ChangeLog.
3 # See the manual pages for details on the licensing terms.
4 # Pod stripped from pm file by OODoc 2.02.
5 # This code is part of the bundle MailTools. Meta-POD processed with
6 # OODoc into POD and HTML manual-pages. See README.md for Copyright.
7 # Licensed under the same terms as Perl itself.
8  
9 package Mail::Mailer::rfc822;
10 1 ▶use vars '$VERSION';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 $VERSION = '2.21';
12  
13 1 ▶use base 'Mail::Mailer';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 sub set_headers
18 0 ▶{ my ($self, $hdrs) = @_;
Subroutine set_headers: not called CC=4 SCAR=30.0
Pod undocumented
19  
20 0 local $\ = "";
21  
22 0 foreach (keys %$hdrs)
23 0 ▶ { next unless m/^[A-Z]/;
Branch: 1 branch
BranchTrueFalseTotal
unless /^[A-Z]/ 0 0 0
24  
25 0 foreach my $h ($self->to_array($hdrs->{$_}))
26 0 { $h =~ s/\n+\Z//;
27 0 print $self "$_: $h\n";
28 }
29 }
30  
31 0 print $self "\n"; # terminate headers
32 }
33  
34 1 1;
« Mail/Mailer/testfile.pm ↑ Summary Mail/Field/Generic.pm »