Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
314 0 3 0 defined $$istat{'time'} and defined $$lstat{'time'}
318 0 3 0 $$istat{'time'} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/ and $$lstat{'time'} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/
333 0 0 24 $ipid and $$ipid{'sttime'} == $$lpid{'sttime'}
338 0 192 0 $$ipid{$k} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/ and $$lpid{$k} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/
345 185 0 7 $$lpid{$k} > 0 and $time > 0
355 147 0 21 defined $$ipid{'io'}{$k} and defined $$lpid{'io'}{$k}
356 0 21 0 $$ipid{'io'}{$k} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/ and $$lpid{'io'}{$k} =~ /^-{0,1}\d+(?:\.\d+){0,1}\z/
361 15 0 6 $$lpid{'io'}{$k} > 0 and $time > 0
575 48 0 0 $s >= 86400 and $d = sprintf('%i', $s / 86400)
576 48 0 0 $s >= 3600 and $h = sprintf('%i', $s / 3600)
577 30 0 18 $s >= 60 and $m = sprintf('%i', $s / 60)

or 2 conditions

line l !l condition
383 0 0 $$lpid{'io'}{$k} ||= 0
464 24 0 getpwuid $1 || 'N/a'

or 3 conditions

line l !l&&r !l&&!r condition
295 24 24 120 $key eq 'statm' or $key eq 'stat'
413 0 0 24 $$self{'pages_to_bytes'} || $PAGES_TO_BYTES