Condition Coverage

blib/lib/Mojolicious/Plugin/Syslog.pm
Criterion Covered Total %
condition 17 36 47.2


and 3 conditions

line !l l&&!r l&&r condition
53 2 0 2 $log_format =~ /\%I\b/u && $app->log

or 2 conditions

line l !l condition
30 1 0 $config{'access_log'} || $ENV{'MOJO_SYSLOG_ACCESS_LOG'} || 'v1'
49 3 0 $_[0]->helpers->timing->elapsed("Mojolicious::Plugin::Syslog") // 0
74 1 0 0 $ENV{'MOJO_SYSLOG_FACILITY'} || 8
76 1 0 $ENV{'MOJO_SYSLOG_LOGOPT'} || 'ndelay,pid'

or 3 conditions

line l !l&&r !l&&!r condition
21 0 1 3 $config->{'enable'} // $ENV{'MOJO_SYSLOG_ENABLE'}
4 0 0 ($config->{'enable'} // $ENV{'MOJO_SYSLOG_ENABLE'}) // $app->mode ne "development"
24 3 1 0 $config->{'access_log'} // $ENV{'MOJO_SYSLOG_ACCESS_LOG'}
61 2 4 0 $app_log || $c->log
74 0 1 0 $config{'facility'} ||= $ENV{'MOJO_SYSLOG_FACILITY'} || 8
75 1 0 0 $ENV{'MOJO_SYSLOG_IDENT'} || $app->moniker
0 1 0 $config{'ident'} ||= $ENV{'MOJO_SYSLOG_IDENT'} || $app->moniker
76 0 1 0 $config{'logopt'} ||= $ENV{'MOJO_SYSLOG_LOGOPT'} || 'ndelay,pid'