Branch Coverage

blib/lib/DBIx/QuickDB/Watcher.pm
Criterion Covered Total %
branch 0 86 0.0


line true false branch
36 0 0 if $self->{'master_pid'} == $$
41 0 0 if $self->{'server_pid'}
44 0 0 unless pipe $rh, $wh
47 0 0 unless defined $pid
49 0 0 if ($pid)
55 0 0 unless $self->{'watcher_pid'}
56 0 0 unless $self->{'server_pid'}
64 0 0 unless defined $pid
65 0 0 if $pid
71 0 0 unless eval { do { $self->watch($wh); 1 } }
93 0 0 unless my $spid = $self->{'server_pid'}
127 0 0 unless open STDIN, "<", \$blah
129 0 0 unless my $master_pid = $params{'master_pid'}
130 0 0 unless my $server_pid = $params{'server_pid'}
131 0 0 unless my $data_dir = $params{'data_dir'}
136 0 0 if ($hup and not $hupped)
138 0 0 unless open STDOUT, ">", \$blah
140 0 0 unless open STDERR, ">", \$blah
145 0 0 if kill 0, $master_pid
149 0 0 unless (eval { do { $class->_watcher_terminate("send_sig", $signal, "got_sig", $kill, "pid", $server_pid, "dir", $data_dir); 1 } })
161 0 0 if $self->{'server_pid'}
178 0 0 unless my $pid = $params{'pid'}
179 0 0 unless my $dir = $params{'dir'}
186 0 0 if ($got_sig and $got_sig eq "TERM")
189 0 0 if -d $dir
197 0 0 unless kill $sig, $pid
205 0 0 if ($delta >= 4)
206 0 0 if ($killed)
208 0 0 unless $delta2 >= 1
215 0 0 if $delta > 8
224 0 0 unless $check
225 0 0 if $check < 0
226 0 0 if $pid != $check
233 0 0 if $self->{'stopped'}++
234 0 0 unless my $pid = $self->{'watcher_pid'}
240 0 0 if $self->{'eliminated'}++
241 0 0 unless my $pid = $self->{'watcher_pid'}
247 0 0 if $self->{'detached'}++
248 0 0 unless my $pid = $self->{'watcher_pid'}
254 0 0 unless my $pid = $self->{'watcher_pid'}
259 0 0 if ($waited > 10)
270 0 0 if ($self->{'master_pid'} == $$) { }
275 0 0 if $self->{'log_file'}