Builder/Utils.pm

filter: Statementstmt 100% 16 / 16 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.8% 23 / 24 CC 2 SCAR 2.9
CC
2
Cov
100%
encode_mime
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Builder/Attachment.pm ↑ Summary Builder/Attachment/Data.pm »
1 # ============================================================================
2 package Mail::Builder::Utils;
3 # ============================================================================
4 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 8 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 8 ▶use Encode qw/encode/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 28 ▶sub encode_mime {
Subroutine encode_mime: called CC=2 SCAR=6.9
Pod undocumented
11 28 my ($string) = @_;
12  
13 28 ▶ return $string
Branch: 1 branch
BranchTrueFalseTotal
unless $string =~ /[^\x00-\x7f]|["']|=\?|\?=/ 26 2 28
14 if $string !~ m/[^\x00-\x7f]|["']|=\?|\?=/;
15 2 return encode('MIME-Header', $string);
16 }
17  
18 8 1;
« Builder/Attachment.pm ↑ Summary Builder/Attachment/Data.pm »