Branch Coverage

blib/lib/System/Process.pm
Criterion Covered Total %
branch 35 54 64.8


line true false branch
137 1 1 if ($import and $import =~ /test/s)
142 0 2 if ($^O =~ /MSWin32/is)
152 0 12 if (scalar @_ & 1) { }
161 1 11 if ($params{'pid'} and $params{'file'})
165 1 1 unless ($params{'pid'} or $params{'file'} or $params{'pattern'})
169 2 8 if ($params{'file'}) { }
1 7 elsif ($params{'pattern'}) { }
170 0 2 unless -r $params{'file'}
175 1 1 unless $pid
186 3 5 unless ($pid =~ /^\d+$/s)
190 0 5 if ($pid > 4294967295)
228 0 4 unless $$hal{$program}
247 0 5 unless ($self->process_info)
280 0 5 unless $parse_result
293 1 0 if ($TEST) { }
309 3 1 if (/$pattern/s) { }
320 0 1 unless scalar @res
341 0 0 unless $self->pid
342 0 0 unless open PID, '>', $file
344 0 0 unless print PID $self->pid
361 0 9 if (ref $_[0] eq 'System::Process::Unit')
367 0 9 unless $out[1]
376 6 71 if (not @header) { }
401 5 9 if ($pid)
411 6 6 if (ref $param eq 'HASH') { }
427 1 0 if (CORE::kill 0, $pid)
444 0 1 unless (defined $signal)