Branch Coverage

blib/lib/Mail/Message/Field/Addresses.pm
Criterion Covered Total %
branch 46 64 71.8


line true false branch
44 11 1 if ($body = $args->{'body'})
45 0 11 ref $body eq 'ARRAY' ? :
46 0 11 unless @body
49 0 12 if (@body > 1 or ref $body[0])
54 0 12 unless $self->SUPER::init($args)
63 21 0 @_ && ref $_[0] ? :
67 0 21 unless defined $email
78 0 11 @_ == 1 ? :
88 0 24 unless defined $name
119 3 42 if ($string =~ s/^\s*\;//s)
120 12 30 if ($string =~ s/^\s*\,//s)
123 5 25 if (defined $email) { }
126 0 5 if defined $comment
133 21 4 if (defined $phrase)
136 3 18 if ($string =~ s/^\s*\://s)
139 3 0 unless $self->group($group)
145 18 4 if ($string =~ s/^\s*\<([^>]*)\>//s) { }
0 4 elsif ($real_phrase) { }
1 3 elsif (defined $phrase) { }
147 0 0 if $string =~ s/^\s*\"(.*?)\r?\n//
159 3 19 unless defined $angle
166 21 3 if defined $email
167 8 16 if $string =~ /^\s*$/s
179 0 4 unless @groups
180 2 2 unless @groups > 1
182 2 0 $groups[0]->name eq '' && $groups[0]->addresses ? :
195 1 48 if ($string =~ s/^\s*"((?:\\.|[^"])*)"\s*\@/\@/) { }
202 36 12 if defined $local
205 28 21 unless defined $local and $shorter =~ s/^\s*\@//
209 0 21 unless defined $domain
222 0 21 if $string =~ s/\s*(\[(?:[^[]\\]*|\\.)*\])//
226 21 0 if defined $atom