| 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
MC/DC0%0/2
ref $class || $class
ref $class
$class
Truth table33%1/3
A || B
A= ref $classB= $class
| |||||||||||||||||||||
| 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__ | ||||||||||||||||||||