Condition Coverage

lib/Mail/Toaster/Qmail.pm
Criterion Covered Total %
condition 27 208 12.9


and 3 conditions

line !l l&&!r l&&r condition
152 0 0 0 $self->conf->{'submit_hostname'} and $self->conf->{'qmail_smtpd_auth_0.31'}
231 0 0 0 -s $assign and -s $rcpt
404 0 0 0 @now and $now[0]
0 0 0 @now and $now[0] and $now[0] eq $value
705 0 0 0 $fields[0] ne '' and $fields[0] ne '.'
716 0 0 0 $match eq 'dom' and $value eq "$fields[1]"
0 0 0 $match eq 'uid' and $value eq "$fields[2]"
0 0 0 $match eq 'dir' and $value eq "$fields[4]"
780 2 0 0 defined $mess and $mess
797 0 1 2 $key =~ /^rwl/ and $self->conf->{$key} == 1
973 0 0 0 $tar and $patchbin
1336 0 0 0 -d '/usr/local/include/openssl' and $self->conf->{'install_openssl'}
1470 0 0 0 defined $self->conf->{'qmail_smtp_reject_patch'} and $self->conf->{'qmail_smtp_reject_patch'}
1474 0 0 0 defined $self->conf->{'qmail_domainkeys'} and $self->conf->{'qmail_domainkeys'}
1479 0 0 0 $sysname eq 'FreeBSD' and $version =~ /^(9|10|11)/
1706 0 1 0 $queue and -d $queue
1726 0 0 0 -e "$control.cdb" and not $self->util->file_is_newer('f1', $control, 'f2', "$control.cdb")
1895 0 0 0 $self->conf->{'smtpd_hostname'} and $self->conf->{'qmail_smtpd_auth_0.31'}
1921 0 0 0 defined $prot and $prot eq 'submit'
1961 0 0 0 $self->conf->{'rwl_enable'} and $self->conf->{'rwl_enable'} > 0
1968 0 0 0 $self->conf->{'rbl_enable'} and $self->conf->{'rbl_enable'} > 0
2206 0 0 0 $self->conf->{'install_vpopmail'} and not -d $self->conf->{'vpopmail_home_dir'}
2210 0 0 0 defined $qsuper and $qsuper

or 2 conditions

line l !l condition
56 0 0 $self->conf->{'send_mailbox_string'} || './Maildir/'
57 0 0 $self->conf->{'send_log_method'} || 'syslog'
284 0 0 $conf->{'openssl_ciphers'} || 'pci'
335 0 0 $self->conf->{'toaster_tmp_dir'} || '/tmp'
353 0 0 $self->util->find_bin('maillogs', 'fatal', 0) || '/usr/local/bin/maillogs'
476 2 0 $conf->{'system_config_dir'} || '/usr/local/etc'
477 2 0 $conf->{'toaster_tmp_dir'} || '/tmp'
478 2 0 $conf->{'toaster_prefix'} || '/usr/local'
543 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
876 10 0 $self->conf->{'qmail_dir'} || '/var/qmail'
913 0 0 $self->conf->{'toaster_src_dir'} || '/usr/local/src'
916 0 0 $self->conf->{'qmail_mysql_include'} || '/usr/local/lib/mysql/libmysqlclient.a'
918 0 0 $self->conf->{'toaster_dl_site'} || 'http://www.tnpi.net'
919 0 0 $self->conf->{'toaster_dl_url'} || '/internet/mail/toaster'
1066 0 2 $self->conf->{'qmail_group'} || 'qmail'
1067 0 2 $self->conf->{'qmail_user_alias'} || 'alias'
1068 0 2 $self->conf->{'qmail_user_daemon'} || 'qmaild'
1069 0 2 $self->conf->{'qmail_user_passwd'} || 'qmailp'
1070 0 2 $self->conf->{'qmail_user_queue'} || 'qmailq'
1071 0 2 $self->conf->{'qmail_user_remote'} || 'qmailr'
1072 0 2 $self->conf->{'qmail_user_send'} || 'qmails'
1073 0 2 $self->conf->{'qmail_user_log'} || 'qmaill'
1074 2 0 $self->conf->{'qmail_log_group'} || 'nofiles'
1138 0 0 $self->conf->{'supervise_rebuild_notice'} || 1
0 0 $self->conf->{'toaster_admin_email'} || 'postmaster'
1200 0 0 $self->conf->{'smtpd_run_as_user'} || 'vpopmail'
1201 0 0 $self->conf->{'qmail_group'} || 'qmail'
1240 2 0 $self->conf->{'install_netqmail'} || '1.05'
1241 2 0 $self->conf->{'toaster_src_dir'} || '/usr/local/src'
1387 0 0 $self->conf->{'qmail_mysql_include'} || '/usr/local/lib/mysql/libmysqlclient.a'
1391 0 0 $self->conf->{'qmail_group'} || 'qmail'
1392 0 0 $self->conf->{'qmail_log_group'} || 'qnofiles'
1442 0 0 $self->conf->{'toaster_src_dir'} || '/usr/local/src'
1483 0 0 $self->conf->{'toaster_dl_site'} || 'http://www.tnpi.net'
1484 0 0 $self->conf->{'toaster_dl_url'} || '/internet/mail/toaster'
1501 0 0 $self->conf->{'toaster_prefix'} || '/usr/local/'
1637 2 0 $self->conf->{'install_netqmail'} || '1.05'
1638 2 0 $self->conf->{'toaster_src_dir'} || '/usr/local/src'
1643 2 0 $self->conf->{'qmail_mysql_include'} || '/usr/local/lib/mysql/libmysqlclient.a'
1645 2 0 $self->conf->{'qmail_log_group'} || 'qnofiles'
1955 0 0 $self->conf->{'rbl_timeout'} || 60

or 3 conditions

line l !l&&r !l&&!r condition
259 0 0 0 not $count or $count == 0
847 0 0 0 $ip =~ /\s+/ or not $ip
865 11 0 0 $self->conf->{'qmail_supervise'} || $self->get_qmail_dir . '/supervise'
911 0 0 0 $package ||= "qmail-$ver"
999 0 0 0 $make ||= $self->util->find_bin('make')
1244 0 2 0 $package ||= "netqmail-$ver"
1292 0 0 0 $self->util->find_bin('gmake', 'fatal', 0) || $self->util->find_bin('make')
1641 0 2 0 $package ||= "netqmail-$ver"
1680 0 0 0 $self->util->find_bin('gmake', 'fatal', 0) || $self->util->find_bin('make')
1747 0 0 0 not -f $cert or -M $cert >= 1
0 0 0 not -f $cert or -M $cert >= 1 or not -e $cert
1755 0 0 0 not -f $cert or -M $cert >= 1
0 0 0 not -f $cert or -M $cert >= 1 or not -e $cert
1763 0 0 0 not -f $cert or -M $cert >= 1
0 0 0 not -f $cert or -M $cert >= 1 or not -e $cert
1781 0 0 0 -d $dir or -l $dir
1919 0 0 0 $self->conf->{'smtpd_qmail_queue'} || "$qdir/bin/qmail-queue"
1946 0 0 0 $self->conf->{'rwl_enable'} or $self->conf->{'rbl_enable'}
1985 0 0 1 $self->conf->{$prot_val} || "$qsupervise/$prot"