Audit/MailInternet.pm

filter: Statementstmt 85.0% 17 / 20 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 83.3% 5 / 6 Podpod 100% 2 / 2 totaltotal 75.7% 25 / 33 CC 2 SCAR 3.8
CC
2
Cov
78%
new
2.1
_autotype_new
2.0
BEGIN
1.0
CRAP 1.5
« Audit/MimeEntity.pm ↑ Summary Audit/Util/Tempdir.pm »
1 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Mail::Audit::MailInternet;
3 {
4 15 $Mail::Audit::MailInternet::VERSION = '2.228';
5 }
6 # ABSTRACT: a Mail::Internet-based Mail::Audit object
7  
8 15 ▶use Mail::Internet;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 15 ▶use parent qw(Mail::Audit Mail::Internet);
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub _autotype_new {
Subroutine _autotype_new: not called CC=1 SCAR=6.9
12 0 my $class = shift;
13 0 my $self = shift;
14 0 bless($self, $class);
15 }
16  
17 9 ▶sub new {
Subroutine new: called CC=2 SCAR=7.4
Pod documented
18 9 my $class = shift;
19 9 ▶ my $type = ref($class) || $class;
Condition33%1/3
ref $class || $class
l!l&&r!l&&!r
090
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table33%1/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
20  
21 # we want to create a subclass of Mail::Internet
22 # call M::I's constructor
23 9 my $self = Mail::Internet->new(@_);
24  
25 # now rebless it into this class
26 9 bless $self, $type;
27 }
28  
29 1 ▶sub is_mime { 0; }
Subroutine is_mime: called CC=1 SCAR=0.0
Pod documented
30  
31 15 1;
32  
33 __END__
« Audit/MimeEntity.pm ↑ Summary Audit/Util/Tempdir.pm »