Condition Coverage

blib/lib/Linux/Info/Processes.pm
Criterion Covered Total %
condition 20 43 46.5


and 3 conditions

line !l l&&!r l&&r condition
338 0 0 3 defined $istat->{'time'} and defined $lstat->{'time'}
342 0 0 3 $istat->{'time'} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/ and $lstat->{'time'} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/
357 0 0 30 $ipid and $ipid->{'sttime'} == $lpid->{'sttime'}
364 0 0 240 $ipid->{$k} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/ and $lpid->{$k} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/
371 235 0 5 $lpid->{$k} > 0 and $time > 0
385 189 0 21 defined $ipid->{'io'}{$k} and defined $lpid->{'io'}{$k}
386 0 0 21 $ipid->{'io'}{$k} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/ and $lpid->{'io'}{$k} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/
393 15 0 6 $lpid->{'io'}{$k} > 0 and $time > 0
626 60 0 0 $s >= 86400 and $d = sprintf('%i', $s / 86400)
627 60 0 0 $s >= 3600 and $h = sprintf('%i', $s / 3600)
628 48 0 12 $s >= 60 and $m = sprintf('%i', $s / 60)

or 2 conditions

line l !l condition
425 0 0 $lpid->{'io'}{$k} ||= 0
513 30 0 getpwuid $1 || 'N/a'

or 3 conditions

line l !l&&r !l&&!r condition
318 30 30 150 $key eq 'statm' or $key eq 'stat'
457 0 0 30 $self->{'pages_to_bytes'} || $PAGES_TO_BYTES