Condition Coverage

blib/lib/Proc/NiceSleep.pm
Criterion Covered Total %
condition 6 38 15.7


and 3 conditions

line !l l&&!r l&&r condition
91 0 0 1 $Proc::NiceSleep::_havesetpriority and setpriority(0, 0, $param) != -1
109 0 0 0 $slept and !$maxsleep || $sleeptime <= $maxsleep
125 6 0 0 $Proc::NiceSleep::_minruntime and $timepassed < $Proc::NiceSleep::_minruntime
145 5 0 1 $Proc::NiceSleep::_maxload and $t1 - $Proc::NiceSleep::_lastloadchecktime >= 0.5
149 0 0 1 $loads[0] and $loads[0] > $Proc::NiceSleep::_maxload
161 2 0 0 $Proc::NiceSleep::_minsleeptime and $timetosleep < $Proc::NiceSleep::_minsleeptime
278 0 0 0 $v =~ /^([0-9.]+)$/ and int $v != $v
334 0 0 0 @l > 2 and defined $l[0]
0 0 0 @l > 2 and defined $l[0] and $l[0] =~ /^\s*[0-9]*\.?[0-9]+$/
421 0 0 0 $out and $out =~ /([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\s*$/

or 2 conditions

line l !l condition
105 0 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
109 0 0 0 !$maxsleep || $sleeptime <= $maxsleep
391 0 0 0 $t1 != int $t1 or $t2 != int $t2