Condition Coverage

blib/lib/NBI/EcoScheduler.pm
Criterion Covered Total %
condition 26 43 60.4


and 3 conditions

line !l l&&!r l&&r condition
100 5 0 8 $fits and not $overlaps
199 0 12 5 $start < $b and $end > $a

or 2 conditions

line l !l condition
69 10 0 $duration_h //= 1
70 10 0 $config //= {}

or 3 conditions

line l !l&&r !l&&!r condition
71 9 1 0 $now //= time
100 2 6 0 $day_t1 //= $candidate
101 0 2 0 $day_t2 //= $candidate
102 0 3 0 $day_t3 //= $candidate
105 6 2 10 $day_t1 // $day_t2
8 3 7 ($day_t1 // $day_t2) // $day_t3
140 5 1 0 $now //= time
158 2 2 14 $dow == 0 || $dow == 6
161 4 0 0 $cfg->{'eco_windows_weekend'} // $DEFAULTS{'eco_windows_weekend'}
14 0 0 $cfg->{'eco_windows_weekday'} // $DEFAULTS{'eco_windows_weekday'}
168 18 0 0 $cfg->{'eco_avoid'} // $DEFAULTS{'eco_avoid'}