Branch Coverage

blib/lib/Mail/Alias/LocalFile.pm
Criterion Covered Total %
branch 45 50 90.0


line true false branch
80 11 52 if ($item =~ /^mta_/u)
99 17 28 if ($recipients eq "")
123 6 97 unless defined $element and length $element
126 16 81 if ($element =~ /,/u or $element =~ / /u) { }
141 38 1 if (length $single_item)
149 81 0 if (length $element)
160 11 108 if ($single_item =~ /^mta_(.+)$/ux) { }
45 63 elsif ($single_item =~ /@/ux) { }
189 3 45 if (not defined $address) { }
194 45 0 if ($address)
206 13 51 unless (exists $self->aliases->{$alias})
212 2 49 if ($processed_aliases->{$alias})
219 1 48 if (defined builtin::reftype($self->aliases->{$alias}) and builtin::reftype($self->aliases->{$alias}) eq 'ARRAY') { }
246 1 48 if (defined builtin::reftype($alias_items) and builtin::reftype($alias_items) eq 'ARRAY') { }
258 48 0 if ($alias_items =~ /,/ux or $alias_items =~ / /ux) { }
0 0 elsif ($alias_items =~ /@/ux) { }
284 40 2 unless (exists $found_once{$recipient})
303 6 125 if ($key =~ /^mta_/u)
315 6 42 if ($circular_references[0])
329 16 183 if (ref $value eq 'ARRAY') { }
181 2 elsif (not ref $value) { }
351 12 293 unless $subitem
354 15 278 if $subitem =~ /^mta_/ux
357 104 174 if (exists $aliases->{$subitem})
360 30 74 if (grep {$_ eq $subitem;} @$path) { }