blib/lib/Linux/GetPidstat/Reader.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 17 | 18 | 94.4 |
line | true | false | branch |
---|---|---|---|
23 | 0 | 105 | unless -e $pid_file |
27 | 1 | 104 | unless length $pid |
30 | 26 | 78 | unless (_is_valid_pid($pid)) |
37 | 76 | 2 | if ($self->{'include_child'}) |
56 | 1 | 75 | if (length $stderr or $exit != 0) |
60 | 1 | 75 | unless (length $stdout) |
70 | 75 | 185 | if $child_pid == $pid |
75 | 2 | 183 | if ($max and $max <= scalar @child_pids) |
93 | 26 | 78 | unless ($pid =~ /^[0-9]+$/) |