Condition Coverage

blib/lib/Log/Syslog/Fast/Simple.pm
Criterion Covered Total %
condition 21 35 60.0


and 3 conditions

line !l l&&!r l&&r condition
35 2 0 0 @_ == 1 && ref $_[0] eq 'HASH'

or 2 conditions

line l !l condition
37 0 2 $args->{'proto'} ||= 0
38 0 2 $args->{'hostname'} ||= '127.0.0.1'
39 1 1 $args->{'port'} ||= 514
44 0 2 $args->{'format'} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
29 0 2 0 ref $what || $what
40 1 1 0 $args->{'facility'} ||= LOG_LOCAL0()
41 1 1 0 $args->{'severity'} ||= LOG_INFO()
42 1 1 0 $args->{'sender'} ||= Sys::Hostname::hostname()
43 1 1 0 $args->{'name'} ||= $default_name
55 1 1 0 $_[3] || $_[0][1][4]
56 1 1 0 $_[4] || $_[0][1][3]
69 1 1 0 $_[2] || time