Condition Coverage

lib/Mail/Toaster/Setup.pm
Criterion Covered Total %
condition 9 285 3.1


and 3 conditions

line !l l&&!r l&&r condition
31 0 0 0 $Mail::Toaster::Setup::OSNAME eq 'freebsd' and $ver eq 'port'
38 0 0 0 $autorespond and -x $autorespond
98 0 0 0 $Mail::Toaster::Setup::OSNAME eq 'freebsd' and $ver eq 'port'
115 0 0 0 $Mail::Toaster::Setup::OSNAME eq 'darwin' and $ver eq 'port'
278 0 0 0 $Mail::Toaster::Setup::OSNAME eq 'freebsd' and $ver eq 'port'
422 0 0 0 -e "$share/pop3d.pem" and -e "$share/imapd.pem"
445 0 0 0 -f $crt and not -e $courier_pem
482 0 0 0 $Mail::Toaster::Setup::OSNAME eq 'freebsd' and $ver eq 'port'
600 0 0 0 $Mail::Toaster::Setup::OSNAME eq 'freebsd' and $ver eq 'port'
654 0 0 0 $Mail::Toaster::Setup::OSNAME eq 'darwin' and $ver eq 'port'
1450 0 0 0 $path and -d $path
1534 0 0 0 $ezmlm and -x $ezmlm
1851 0 0 0 $gid && $gid > 0
1879 0 4 0 $curs[2] and $mins[2]
0 3 1 $curs[2] and $mins[2] and $curs[2] > $mins[2]
1880 3 0 0 $curs[3] and $mins[3]
0 0 0 $curs[3] and $mins[3] and $curs[3] > $mins[3]
2340 0 0 0 defined $uid and defined $gid
2596 0 0 1 defined $self->conf->{'install_openssl_conf'} and not $self->conf->{'install_openssl_conf'}
2622 0 0 0 $line =~ /emailAddress_default/ and not $line =~ /example\.com/
2685 0 0 0 not -e $conf and -e '/usr/local/openssl/openssl.cnf.sample'
3047 0 0 0 $spam eq 'SET' and $conf->{'qmailadmin_spam_command'}
3185 0 0 0 -x $client and not -x $admin
3680 0 0 0 $self->conf->{'install_mysql'} and $self->conf->{'install_spamassassin_sql'}
3886 0 0 0 $Mail::Toaster::Setup::OSNAME eq 'freebsd' and $ver eq 'port'
4117 0 0 0 $cgi and -d $cgi
4133 0 0 0 $Mail::Toaster::Setup::OSNAME eq 'freebsd' and $ver eq 'port'
4461 0 0 0 -l $sym and -x $sym
4546 0 0 0 $self->conf->{'install_mysql'} and $self->conf->{'vpopmail_mysql'}
4572 0 0 0 $self->conf->{'install_mysql'} and $self->conf->{'vpopmail_mysql'}
4650 0 0 0 $self->conf->{'install_mysql'} and $self->conf->{'vpopmail_mysql'}
4719 0 0 0 $uid && $uid > 0
4741 0 0 0 $cgi and $cgi =~ m[/usr/local/(.*)$]

or 2 conditions

line l !l condition
54 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
86 1 0 $self->conf->{'toaster_prefix'} || '/usr/local'
87 1 0 $self->conf->{'system_config_dir'} || '/usr/local/etc'
89 1 0 $self->conf->{'install_clamav_user'} || 'clamav'
157 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
158 0 0 $self->conf->{'system_config_dir'} || '/usr/local/etc'
159 0 0 $self->conf->{'install_clamav_user'} || 'clamav'
294 0 0 $self->conf->{'system_config_dir'} || '/usr/local/etc'
295 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
350 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
351 0 0 $self->conf->{'system_config_dir'} || '/usr/local/etc'
417 0 0 $self->conf->{'system_config_dir'} || '/usr/local/etc'
418 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
465 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
467 0 0 $self->conf->{'system_config_dir'} || '/usr/local/etc'
528 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
529 0 0 $self->conf->{'system_config_dir'} || '/usr/local/etc'
678 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
808 0 0 $self->conf->{'package_install_method'} || 'packages'
1431 0 0 $self->conf->{'qmailadmin_spam_command'} || '| /usr/local/bin/maildrop /usr/local/etc/mail/mailfilter'
1522 1 0 $self->conf->{'system_config_dir'} || '/usr/local/etc'
1551 0 0 $self->conf->{'toaster_src_dir'} || '/usr/local/src/mail'
1552 0 0 $self->conf->{'toaster_http_base'} || '/usr/local/www'
1685 0 0 $self->conf->{'system_config_dir'} || '/usr/local/etc'
1970 0 0 $self->conf->{'toaster_http_docs'} || '/usr/local/www/data'
1972 0 0 $self->conf->{'qmail_log_base'} || '/var/log/mail'
1974 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
2101 0 0 $self->conf->{'toaster_cgi_bin'} || '/usr/local/www/cgi-bin.toaster/'
2102 0 0 $self->conf->{'toaster_http_docs'} || '/usr/local/www/toaster'
2333 0 0 $self->conf->{'qmail_log_user'} || 'qmaill'
2334 0 0 $self->conf->{'qmail_log_group'} || 'qnofiles'
2335 0 0 $self->conf->{'qmail_log_base'} || '/var/log/mail'
2356 0 0 $self->conf->{'qmail_log_user'} || 'qmaill'
2357 0 0 $self->conf->{'qmail_log_group'} || 'qnofiles'
2362 0 0 $self->conf->{'qmail_log_base'} || '/var/log/mail'
2604 0 0 $self->conf->{'ssl_country'} || 'US'
2605 0 0 $self->conf->{'ssl_state'} || 'Texas'
2606 0 0 $self->conf->{'ssl_organization'} || 'DisOrganism, Inc.'
2607 0 0 $self->conf->{'ssl_locality'} || 'Dallas'
2609 0 0 $self->conf->{'ssl_common_name'} || $self->conf->{'toaster_hostname'} || 'mail.example.com'
2611 0 0 $self->conf->{'ssl_email_address'} || $self->conf->{'toaster_admin_email'} || 'postmaster@example.com'
2907 0 0 $toaster ||= 'http://mail-toaster.org'
3006 0 0 $self->conf->{'toaster_src_dir'} || '/usr/local/src'
3499 0 0 $self->conf->{'qmail_log_user'} || 'qmaill'
3500 0 0 $self->conf->{'qmail_log_group'} || 'qnofiles'
3536 0 0 $ip ||= '192.168.2.9'
3537 0 0 $user ||= 'qmaill'
3540 0 0 $log ||= '/var/log/mail'
3895 0 0 $self->conf->{'toaster_http_docs'} || '/usr/local/www/data'
3896 0 0 $self->conf->{'toaster_src_dir'} || '/usr/local/src'
3961 0 0 $self->conf->{'install_squirrelmail_sql_pass'} || 'secret'
4064 0 0 $self->conf->{'install_squirrelmail_sql_pass'} || 's3kret'
4113 0 0 $self->conf->{'toaster_http_base'} || '/usr/local/www'
4115 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
4153 0 0 $self->conf->{'toaster_src_dir'} || '/usr/local/src'
4219 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
4289 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
4350 0 0 $self->conf->{'qmail_service'} || '/var/service'
4372 0 0 $self->conf->{'toaster_dl_site'} || 'http://www.tnpi.net'
4390 0 0 $self->conf->{'toaster_dl_site'} || 'http://www.tnpi.net'
4405 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
4428 0 0 $self->conf->{'system_config_dir'} || '/usr/local/etc'
4435 0 0 $self->conf->{'toaster_dl_site'} || 'http://www.tnpi.net'
4459 0 0 $self->conf->{'toaster_prefix'} || '/usr/local'
4463 0 0 unlink $sym or return $self->error("Please [re]move '${sym}' and run again.", 'fatal', 0)
4667 0 0 $opts{'shell'} || '/sbin/nologin'
4738 0 0 $self->conf->{'toaster_cgi_bin'} || '/usr/local/www/cgi-bin'
4739 0 0 $self->conf->{'toaster_http_docs'} || '/usr/local/www/data'
4807 0 0 $self->conf->{'toaster_http_docs'} || '/usr/local/www/toaster'

or 3 conditions

line l !l&&r !l&&!r condition
51 0 0 0 $Mail::Toaster::Setup::OSNAME eq 'darwin' or $Mail::Toaster::Setup::OSNAME eq 'freebsd'
302 0 0 0 $self->util->find_bin('gmake', 'verbose', 0, 'fatal', 0) || $self->util->find_bin('make', 'verbose', 0)
426 0 0 0 $self->conf->{'ssl_common_name'} || $self->conf->{'toaster_hostname'}
847 0 0 0 $_->{'port'} || $_->{'name'}
958 0 0 0 -f 'README' or -f 'lib/toaster.conf.pod'
1064 0 0 0 $ver eq 'port' or $ver eq '1'
1917 0 0 0 $ver eq 'port' or $ver == 1
1971 0 0 0 $self->conf->{'toaster_hostname'} || hostname()
2195 0 0 0 $self->conf->{'toaster_cgi_bin'} || "$www/cgi-bin.toaster/"
2196 0 0 0 $self->conf->{'toaster_http_docs'} || "$www/toaster"
2788 0 0 0 $self->conf->{'install_squirrelmail'} or $self->conf->{'install_roundcube'}
2977 0 0 0 $self->util->find_bin('gmake', 'fatal', 0, 'verbose', 0) || $self->util->find_bin('make', 'verbose', 0)
3159 0 0 0 $ver == 1 or $ver eq 'port'
3259 0 0 0 $ver eq 'port' or $ver eq '1'
4184 0 0 0 $make ||= $self->util->find_bin('make', 'fatal', 0, 'verbose', 0)
4762 0 0 0 $make ||= $self->util->find_bin('make', 'fatal', 0, 'verbose', 0)