Branch Coverage

blib/lib/Mail/Lite/Processor.pm
Criterion Covered Total %
branch 30 46 65.2


line true false branch
51 75 72 if (@{$$self{'rules'};})
72 4 2434 unless (exists $$rule{'match'})
86 10273 7038 if (ref $ref eq 'REF')
90 3235 14076 if (ref $ref eq 'ARRAY') { }
7038 7038 elsif (ref $ref eq 'HASH') { }
7038 0 elsif (ref $ref eq 'SCALAR') { }
97 0 7038 if (${$ref;} and ${$ref;} =~ /^_common\./)
100 0 0 unless (exists $$self{'common_rules'}{$common_rule_name})
105 0 0 unless ${$ref;}
121 75 233 unless (ref $self)
125 308 0 ref($param{'message'}) =~ /::/ ? :
151 0 680 unless ($processors)
171 274 987 defined $output ? :
186 771 490 if (OK() eq $result) { }
0 490 elsif (STOP() eq $result) { }
373 117 elsif (NEXT_RULE() eq $result) { }
117 0 elsif (STOP_RULE() eq $result) { }
0 0 elsif (ERROR() eq $result) { }
214 0 1261 if ref $processor eq 'CODE'
216 1249 12 if (exists $$_processors_cache{$processor})
220 12 0 unless ($processor =~ s/^\+//)
227 0 12 unless ($pkgname->require)
231 0 12 unless my $c = $pkgname->can('process')