blib/lib/Data/Message.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Data::Message;
3 {
4 5 $Data::Message::VERSION = '1.104';
5 }
6 # ABSTRACT: parse and build header-and-body messages (kinda like email)
7  
8 5 ▶use Email::Simple 1.92;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 5 ▶use base qw[Email::Simple];
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 5 my $private = \q[no peeking];
12  
13 10 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
14 10 my ($self, $message, %attrs) = @_;
15 10 my $object = $self->SUPER::new($message);
16 10 $object->{"$private"} = \%attrs;
17 10 return $object;
18 }
19  
20 6 ▶sub header_set {
Subroutine header_set: called CC=1 SCAR=0.0
Pod documented
21 6 my $self = shift;
22 6 local $Email::Simple::GROUCHY = $self->{"$private"}->{grouchy};
23 6 return $self->SUPER::header_set(@_);
24 }
25  
26 5 1;
27  
28 __END__
↑ Summary