Condition Coverage

blib/lib/Unix/PID.pm
Criterion Covered Total %
condition 2 53 3.7


and 3 conditions

line !l l&&!r l&&r condition
10 1 0 0 defined $_[0] && !($_[0] =~ / \A \d+ \. \d+ \. \d+ \z /msx)
22 0 1 0 defined $file and $file ne ''
32 0 0 0 exists $$args_ref{'minimum_pid'} && $$args_ref{'minimum_pid'} =~ /\A\d+\z/ms
0 0 0 exists $$args_ref{'use_open3'} && !$$args_ref{'use_open3'}
65 0 0 0 -d $path and -x "$path/ps"
80 0 0 0 $pid and $pid ne $$
0 0 0 $pid and $pid ne $$ and $cmd
147 0 0 0 $rc and $newpid == $$
171 0 0 0 defined $rc and $rc == 0
202 0 0 0 int $curpid == $$ and $newpid == $$
230 0 0 0 $rc and -e $pidfile
278 0 0 0 $> == 0 and CORE::kill 0, $check_pid
281 0 0 0 -e "/proc/$$" and -r "/proc/$$"
0 0 0 -e "/proc/$$" and -r "/proc/$$" and -r "/proc/$check_pid"
298 0 0 0 defined $$wait_ref{'max_loops'} and $$wait_ref{'max_loops'} =~ / \A \d+ \z /msx

or 2 conditions

line l !l condition
137 0 0 $self->get_pid_from_pidfile($pid_file) || (return)

or 3 conditions

line l !l&&r !l&&!r condition
65 0 0 0 -d $path and -x "$path/ps" or $path eq ''
315 0 0 0 $$wait_ref{'use_hires_usleep'} or $$wait_ref{'use_hires_nanosleep'}