Message/TransferEnc/QuotedPrint.pm

filter: Statementstmt 92.0% 23 / 25 Branchbran n/a Conditioncond 66.6% 4 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 87.5% 7 / 8 Podpod 100% 3 / 3 totaltotal 80.4% 37 / 46 CC 3 SCAR 4.1
CC
3
Cov
87%
decode
2.0
encode
2.0
check
2.0
CRAP 1.5
« Message/Convert/HtmlFormatText.pm ↑ Summary Message/Field/DKIM.pm »
1 # Copyrights 2001-2022 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.03.
5 # This code is part of distribution Mail-Message. Meta-POD processed with
6 # OODoc into POD and HTML manual-pages. See README.md
7 # Copyright Mark Overmeer. Licensed under the same terms as Perl itself.
8  
9 package Mail::Message::TransferEnc::QuotedPrint;
10 3 ▶use vars '$VERSION';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 $VERSION = '3.012';
12  
13 3 ▶use base 'Mail::Message::TransferEnc';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 3 ▶use MIME::QuotedPrint;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20  
21 sub name() { 'quoted-printable' }
22  
23 sub check($@)
24 0 ▶{ my ($self, $body, %args) = @_;
Subroutine check: not called CC=1 SCAR=6.9
Pod documented
25 0 $body;
26 }
27  
28  
29 sub decode($@)
30 2 ▶{ my ($self, $body, %args) = @_;
Subroutine decode: called CC=2 SCAR=7.0
Pod documented
31  
32 2 ▶ my $bodytype = $args{result_type} || ref $body;
Condition66%2/3
$args{'result_type'} || ref $body
l!l&&r!l&&!r
110
MC/DC0%0/2
$args{'result_type'} || ref $body
$args{'result_type'} ref $body
Truth table66%2/3
A || B
A= $args{'result_type'}B= ref $body
ABresult
1X1
011
000
33  
34 2 $bodytype->new
35 ( based_on => $body
36 , transfer_encoding => 'none'
37 , data => decode_qp($body->string)
38 );
39 }
40  
41  
42 sub encode($@)
43 2 ▶{ my ($self, $body, %args) = @_;
Subroutine encode: called CC=2 SCAR=7.0
Pod documented
44  
45 2 ▶ my $bodytype = $args{result_type} || ref $body;
Condition66%2/3
$args{'result_type'} || ref $body
l!l&&r!l&&!r
110
MC/DC0%0/2
$args{'result_type'} || ref $body
$args{'result_type'} ref $body
Truth table66%2/3
A || B
A= $args{'result_type'}B= ref $body
ABresult
1X1
011
000
46  
47 2 $bodytype->new
48 ( based_on => $body
49 , transfer_encoding => 'quoted-printable'
50 , data => encode_qp($body->string)
51 );
52 }
53  
54 3 1;
« Message/Convert/HtmlFormatText.pm ↑ Summary Message/Field/DKIM.pm »