Branch Coverage

blib/lib/Mail/Message/Field/Addresses.pm
Criterion Covered Total %
branch 50 70 71.4


line true false branch
44 13 1 if ($body = $args->{'body'})
45 0 13 ref $body eq 'ARRAY' ? :
46 0 13 unless @body
49 0 14 if (@body > 1 or ref $body[0])
54 0 14 unless $self->SUPER::init($args)
63 23 0 @_ && ref $_[0] ? :
67 0 23 unless defined $email
78 0 13 @_ == 1 ? :
88 0 26 unless defined $name
121 3 44 if ($string =~ s/^\s*\;//s)
122 12 32 if ($string =~ s/^\s*\,//s)
125 5 27 if (defined $email) { }
128 0 5 if defined $comment
140 24 23 unless defined $word
142 23 0 if length $word
145 3 20 if ($string =~ s/^\s*\://s)
148 3 0 unless $self->group($group)
152 20 4 @words ? :
155 20 4 if ($string =~ s/^\s*\<([^>]*)\>//s) { }
0 4 elsif ($real_phrase) { }
1 3 elsif (defined $phrase) { }
157 0 0 if $string =~ s/^\s*\"(.*?)\r?\n//
169 3 21 unless defined $angle
176 23 3 if defined $email
177 10 16 if $string =~ /^\s*$/s
180 0 16 if $start_length == length $string
191 0 4 unless @groups
192 2 2 unless @groups > 1
194 2 0 $groups[0]->name eq '' && $groups[0]->addresses ? :
207 1 52 if ($string =~ s/^\s*"((?:\\.|[^"])*)"\s*\@/\@/) { }
214 40 12 if defined $local
217 30 23 unless defined $local and $shorter =~ s/^\s*\@//
221 0 23 unless defined $domain
235 0 23 if $string =~ s/\s*(\[(?:[^[]\\]*|\\.)*\])//
239 23 0 if defined $atom