Branch Coverage

blib/lib/DBIx/QuickDB/Watcher.pm
Criterion Covered Total %
branch 0 88 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
214 0 0 unless defined $kill_after and $kill_after =~ /^\d+$/
223 0 0 if ($delta >= $kill_after)
224 0 0 if ($killed)
226 0 0 unless $delta2 >= 1
233 0 0 if $delta > $give_up
242 0 0 unless $check
243 0 0 if $check < 0
244 0 0 if $pid != $check
251 0 0 if $self->{'stopped'}++
252 0 0 unless my $pid = $self->{'watcher_pid'}
258 0 0 if $self->{'eliminated'}++
259 0 0 unless my $pid = $self->{'watcher_pid'}
265 0 0 if $self->{'detached'}++
266 0 0 unless my $pid = $self->{'watcher_pid'}
272 0 0 unless my $pid = $self->{'watcher_pid'}
277 0 0 if ($waited > 10)
288 0 0 if ($self->{'master_pid'} == $$) { }
293 0 0 if $self->{'log_file'}