Condition Coverage

blib/lib/NBI/EcoScheduler.pm
Criterion Covered Total %
condition 24 43 55.8


and 3 conditions

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

or 2 conditions

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

or 3 conditions

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