IMAP/Address.pm

filter: Statementstmt 54.5% 12 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 3 / 9 Podpod 0.0% 0 / 6 totaltotal 40.5% 15 / 37 CC 1 SCAR 5.1
CC
1
Cov
55%
new
2.0
mailbox
2.0
host
2.0
CRAP 1.7
« IMAP/Envelope.pm ↑ Summary IMAP.pm »
1 package Protocol::IMAP::Address;
2 {
3 2 $Protocol::IMAP::Address::VERSION = '0.004';
4 }
5 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 Protocol::IMAP::Address - represents an email address as found in the message envelope
11  
12 =head1 VERSION
13  
14 version 0.004
15  
16 =cut
17  
18 use overload
19 2 ▶ '""' => 'to_string',
Subroutine BEGIN: called CC=1 SCAR=0.0
20 bool => sub() { 1 },
21 2 fallback => 1;
22  
23 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
24 0 my $class = shift;
25 0 my %args = @_;
26 0 my $self = bless \%args, $class;
27 0 $self
28 }
29  
30 0 ▶sub mailbox { shift->{mailbox} }
Subroutine mailbox: not called CC=1 SCAR=6.9
Pod undocumented
31 0 ▶sub host { shift->{host} }
Subroutine host: not called CC=1 SCAR=6.9
Pod undocumented
32 0 ▶sub name { shift->{name} }
Subroutine name: not called CC=1 SCAR=6.9
Pod undocumented
33 0 ▶sub source { shift->{source} }
Subroutine source: not called CC=1 SCAR=6.9
Pod undocumented
34  
35 0 ▶sub to_string {
Subroutine to_string: not called CC=1 SCAR=6.9
Pod undocumented
36 0 my $self = shift;
37 0 join '@', $self->mailbox, $self->host
38 }
39  
40 2 1;
« IMAP/Envelope.pm ↑ Summary IMAP.pm »