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'}
134 0 0 unless open STDIN, "<", \$blah
136 0 0 unless my $master_pid = $params{'master_pid'}
137 0 0 unless my $server_pid = $params{'server_pid'}
138 0 0 unless my $data_dir = $params{'data_dir'}
143 0 0 if ($hup and not $hupped)
145 0 0 unless open STDOUT, ">", \$blah
147 0 0 unless open STDERR, ">", \$blah
152 0 0 if kill 0, $master_pid
156 0 0 unless (eval { do { $class->_watcher_terminate("send_sig", $signal, "got_sig", $kill, "pid", $server_pid, "dir", $data_dir); 1 } })
168 0 0 if $self->{'server_pid'}
185 0 0 unless my $pid = $params{'pid'}
186 0 0 unless my $dir = $params{'dir'}
193 0 0 if ($got_sig and $got_sig eq "TERM")
196 0 0 if -d $dir
204 0 0 unless kill $sig, $pid
212 0 0 if ($delta >= 4)
213 0 0 if ($killed)
215 0 0 unless $delta2 >= 1
222 0 0 if $delta > 8
231 0 0 unless $check
232 0 0 if $check < 0
233 0 0 if $pid != $check
240 0 0 if $self->{'stopped'}++
241 0 0 unless my $pid = $self->{'watcher_pid'}
247 0 0 if $self->{'eliminated'}++
248 0 0 unless my $pid = $self->{'watcher_pid'}
254 0 0 if $self->{'detached'}++
255 0 0 unless my $pid = $self->{'watcher_pid'}
261 0 0 unless my $pid = $self->{'watcher_pid'}
266 0 0 if ($waited > 10)
277 0 0 if ($self->{'master_pid'} == $$) { }
282 0 0 if $self->{'log_file'}