Condition Coverage

blib/lib/Minion/Backend/SQLite.pm
Criterion Covered Total %
condition 58 70 82.8


and 3 conditions

line !l l&&!r l&&r condition
224 0 200 80 defined $locks and $locks >= ($options->{'limit'} || 1)
225 0 48 152 defined $duration and $duration > 0
275 261 0 46 $id and $self->sqlite->db->query("update minion_workers set notified = datetime('now'), status = ?\n where id = ?", {'json', $options->{'status'} // {}}, $id)->rows
404 0 0 617 @$queues and @$tasks

or 2 conditions

line l !l condition
23 5 2 shift() || []
4 3 shift() || []
48 214 180 shift() || []
104 290 shift() || {}
59 10 384 $options->{'attempts'} // 1
8 386 $options->{'delay'} // 0
16 378 $options->{'notes'} || {}
8 386 $options->{'parents'} || []
40 354 $options->{'priority'} // 0
16 378 $options->{'queue'} // 'default'
92 8 184 $daily{"$step->{'day'}-$step->{'hour'}"} // {}
96 8 184 $hour_counts->{'failed_jobs'} // 0
8 184 $hour_counts->{'finished_jobs'} // 0
209 32 200 $_->{'jobs'} // ''
218 160 120 shift() // {}
224 160 120 $options->{'limit'} || 1
271 307 0 shift() || {}
275 46 0 $options->{'status'} // {}
279 261 0 $options->{'status'} // {}
325 26 0 shift() // {}
341 61 71 shift() || {}
356 24 108 $options->{'delay'} // 0
402 86 531 $options->{'queues'} || ['default']
424 413 204 $res->arrays->first // []
413 204 +($res->arrays->first // [])->[0] // (return undef)
432 413 0 $db->query('select id, args, retries, task from minion_jobs where id = ?', $job_id)->expand('json', 'args')->hash // (return undef)

or 3 conditions

line l !l&&r !l&&!r condition
40 86 0 32 ($remaining = $end - &steady_time()) <= 0 or $job = $self->_try($id, $options)
44 413 0 86 $job || $self->_try($id, $options)