Condition Coverage

lib/Mail/Toaster/Logs.pm
Criterion Covered Total %
condition 0 84 0.0


and 3 conditions

line !l l&&!r l&&r condition
135 0 0 0 $self->conf->{'send_log_method'} and $self->conf->{'send_log_method'} eq 'syslog'
400 0 0 0 $Mail::Toaster::Logs::count_ref->{'status_remotep'} and $Mail::Toaster::Logs::count_ref->{'status'}
681 0 0 0 $line =~ /imapd: LOGIN/ and $line =~ /127\.0\.0\./
824 0 0 0 defined $temp{'spam_scores'} && $spam_count
827 0 0 0 defined $temp{'ham_scores'} && $ham_count
830 0 0 0 $temp{'threshhold'} && ($ham_count || $spam_count)
836 0 0 0 defined $temp{'ham_seconds'} && $ham_count
839 0 0 0 defined $temp{'spam_seconds'} && $spam_count
842 0 0 0 defined $temp{'ham_bytes'} && $ham_count
845 0 0 0 defined $temp{'spam_bytes'} && $spam_count
1004 0 0 0 $logbase and -d $logbase
1029 0 0 0 $file and -e $file
1056 0 0 0 $files_ref and $files_ref->[0]
1109 0 0 0 $files_ref and $files_ref->[0]
1215 0 0 0 $files_ref and $files_ref->[0]
1444 0 0 0 $key and defined $value
1475 0 0 0 $cronolog and -x $cronolog
1489 0 0 0 $taibin and not -x $taibin

or 2 conditions

line l !l condition
29 0 0 $self->conf->{'toaster_admin_email'} || 'postmaster'
93 0 0 $self->conf->{'qmailanalog_bin'} || '/var/qmail/qmailanalog/bin'
214 0 0 $self->conf->{'logs_counters'} || 'counters'
216 0 0 $self->conf->{'logs_user'} || 'qmaill'
217 0 0 $self->conf->{'logs_group'} || 'qnofiles'
464 0 0 $Mail::Toaster::Logs::count_ref->{'imap_success'} ||= 0
465 0 0 $Mail::Toaster::Logs::count_ref->{'imap_ssl_success'} ||= 0
799 0 0 $temp{'ham'} || 0
800 0 0 $temp{'spam'} || 0
1376 0 0 $self->{'conf'}{'logs_user'} || 'qmaill'
1377 0 0 $self->{'conf'}{'logs_group'} || 'qnofiles'
1544 0 0 $self->conf->{'logs_counters'} || 'counters'

or 3 conditions

line l !l&&r !l&&!r condition
871 0 0 0 not defined @$logfiles[0] or @$logfiles[0] eq ''
1545 0 0 0 $self->conf->{'logs_' . $prot . '_count'} || "$prot.txt"