Branch Coverage

lib/Class/Usul/IPC.pm
Criterion Covered Total %
branch 1 34 2.9


line true false branch
140 0 0 unless (defined $procs)
145 0 0 if (exists $procs->{$pid})
157 0 0 unless $fsystem
165 0 0 if defined $_
177 0 0 if $file = $args->{'file'} and $io = &io($file) and $io->is_file
180 0 0 unless $pid and $pid =~ / \d+ /mx
182 0 0 kill(0, $pid) ? :
196 0 0 if ($ptype == 3) { }
207 0 0 if ($ptype == 1 and &$_proc_belongs_to_user($p->uid, $user) or $ptype == 2 and &$_cmd_matches($p->cmndline, $pat))
222 0 374 unless $attr->{'cmd'} = $cmd
233 0 0 unless @args->is_hashref([0])
240 0 0 if $args->{'pid'}
242 0 0 if ($file = $args->{'file'} and $io = &io($file) and $io->is_file)
244 0 0 if $sig eq 'TERM'
247 0 0 unless defined $pids->[0] and $pids->[0] =~ / \d+ /mx
250 0 0 if (exists $args->{'flag'} and $args->{'flag'} =~ / one /mix)
258 0 0 unless $args->{'force'}