Branch Coverage

lib/Mail/SpamAssassin/Logger.pm
Criterion Covered Total %
branch 7 84 8.3


line true false branch
111 91 0 if (ref $facilities eq '') { }
0 0 elsif (ref $facilities eq 'ARRAY') { }
0 0 elsif (ref $facilities eq 'HASH') { }
112 0 91 if (defined $facilities and $facilities ne '0')
123 0 91 if (@facilities)
126 0 0 if $fac =~ /^(no)?(.+)\z/is
129 0 0 if (grep {not /^info\z/ || /^no./is;} keys %{$LOG_SA{'facility'};}) { }
130 0 0 if $LOG_SA{'level'} < 3
133 0 0 if $LOG_SA{'level'} < 2
160 0 0 if ($level eq 'error')
162 0 0 if index($message[0], '__ignore__') != -1
167 0 0 if defined $caller[3] and defined $caller[0] and $caller[3] =~ /^\(eval\)$/ and $caller[0] =~ /^Mail::SpamAssassin(?:$|::)/
172 0 0 if $LOG_ENTERED
181 0 0 if ($message eq $LOG_DUPLINE) { }
185 0 0 if ($LOG_DUPCNT >= $LOG_DUPMIN)
190 0 0 if ($LOG_DUPCNT >= $LOG_DUPMIN)
192 0 0 if ($LOG_DUPCNT > 1) { }
219 0 0 if ($first) { }
238 0 22074 if $LOG_SA{'level'} >= 3
251 0 17 if $LOG_SA{'level'} >= 2
262 0 0 if ($_[1] =~ /^([a-z0-9_-]*):/i) { }
270 0 0 if ($_[0] == 3)
273 0 0 exists $LOG_SA{'facility'}{$facility} ? :
0 0 unless exists $LOG_SA{'facility'}{$facility} ? $LOG_SA{'facility'}{$facility} : $LOG_SA{'facility'}{'all'}
279 0 0 if @args
284 0 0 $level == 2 ? :
308 0 0 unless $class =~ /^\w+$/
311 0 0 unless (eval 'use Mail::SpamAssassin::Logger::' . $class . '; 1')
312 0 0 $@ ne '' ? :
316 0 0 unless (exists $LOG_SA{'method'}{$name})
320 0 0 unless (eval '$object = Mail::SpamAssassin::Logger::' . $class . '->new(%params); 1')
321 0 0 $@ ne '' ? :
324 0 0 if (not $object) { }
325 0 0 unless (defined $eval_stat)
354 0 0 if (exists $LOG_SA{'method'}{$name})
377 1794 0 if ($level eq 'dbg') { }
0 0 elsif ($level eq 'info') { }
378 1794 0 if $LOG_SA{'level'} < 3
379 0 0 unless $facility
381 0 0 $LOG_SA{'facility'}{$facility} ? :
0 0 if exists $LOG_SA{'facility'}{$facility}
382 0 0 if $LOG_SA{'facility'}{'all'}