Branch Coverage

blib/lib/syslog.pl
Criterion Covered Total %
branch 0 60 0.0


line true false branch
52 0 0 if $lo_ndelay
73 0 0 unless $mask and $priority
80 0 0 if (/^kern$/ or $num < 0) { }
0 0 elsif ($num <= &LOG_PRIMASK) { }
84 0 0 if defined $numpri
86 0 0 unless &LOG_MASK($numpri) & $maskpri
89 0 0 if defined $numfac
95 0 0 unless defined $numpri
97 0 0 unless (defined $numfac)
98 0 0 unless $facility
102 0 0 unless $connected
106 0 0 if (not $ident and $mask =~ /^(\S.*):\s?(.*)/)
111 0 0 unless ($whoami)
112 0 0 unless $whoami = getlogin or $whoami = getpwuid $<
117 0 0 if $lo_pid
120 0 0 unless $mask =~ /\n$/
124 0 0 unless (send SYSLOG, "<$sum>${whoami}: $message", 0)
125 0 0 if ($lo_cons)
126 0 0 if ($pid = fork) { }
127 0 0 unless ($lo_nowait)
134 0 0 if defined $pid
144 0 0 unless $name =~ /^LOG_/
146 0 0 defined &$name ? :
164 0 0 if (chop($myname = `hostname`)) { }
166 0 0 unless $name
174 0 0 if ($host =~ /^\d+\./) { }
179 0 0 unless $name
184 0 0 unless socket SYSLOG, $af_inet, $datagram, $udp
185 0 0 unless bind SYSLOG, $this
186 0 0 unless CORE::connect SYSLOG, $that