Branch Coverage

blib/lib/Mojolicious/Plugin/Syslog.pm
Criterion Covered Total %
branch 13 18 72.2


line true false branch
21 1 3 if ($config->{'enable'} // $ENV{'MOJO_SYSLOG_ENABLE'}) // $app->mode ne "development"
24 4 0 if $config->{'access_log'} // $ENV{'MOJO_SYSLOG_ACCESS_LOG'}
31 1 3 if $log_format =~ /^v?1$/u
32 1 3 if $log_format =~ /^v?2$/u
41 0 2 unless $_[1]->headers->user_agent
43 0 2 unless $_[1]->headers->referrer
46 2 0 unless $_[2]->message
63 1 5 $res->is_server_error ? :
79 1 0 if $config{'only_syslog'}