Condition Coverage

blib/lib/Mojo/Redis2/Server.pm
Criterion Covered Total %
condition 18 38 47.3


and 3 conditions

line !l l&&!r l&&r condition
21 35 0 0 $self->pid and kill 0, $self->pid
88 0 0 19 $self->pid and waitpid $self->pid, 0

or 2 conditions

line l !l condition
7 0 34 $ENV{'MOJO_REDIS_SERVER_DEBUG'} || 0
23 0 35 $config{'bind'} ||= '127.0.0.1'
24 0 35 $config{'daemonize'} ||= 'no'
25 0 35 $config{'databases'} ||= 16
26 0 35 $config{'loglevel'} ||= 'warning'
28 0 35 $config{'rdbchecksum'} ||= 'no'
29 2 33 $config{'requirepass'} ||= ''
30 0 35 $config{'stop_writes_on_bgsave_error'} ||= 'no'
31 0 35 $config{'syslog_enabled'} ||= 'no'
34 4 31 $ENV{'REDIS_SERVER_BIN'} || 'redis-server'
47 57 0 $_ // ''
85 1881 0 $@ || 'No idea why we cannot connect to Mojo::Redis2::Server'
96 5 0 $_[0]{'parent_pid'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
27 0 35 0 $config{'port'} ||= 'Mojo::IOLoop::Server'->generate_port
49 0 0 0 $ENV{'MOJO_REDIS_URL'} //= $self->{'url'}