Condition Coverage

blib/lib/Minion/Worker.pm
Criterion Covered Total %
condition 0 48 0.0


and 3 conditions

line !l l&&!r l&&r condition
80 0 0 0 $self->{'finished'} and not @{$self->{'jobs'};}
105 0 0 0 $self->register and $self->{'last_heartbeat'} = &steady_time()
110 0 0 0 $self->process_commands and $self->{'last_command'} = &steady_time()
121 0 0 0 $_->is_finished && ++$status->{'performed'}

or 2 conditions

line l !l condition
55 0 0 $status->{'command_interval'} //= 10
56 0 0 $status->{'dequeue_timeout'} //= 5
57 0 0 $status->{'heartbeat_interval'} //= 300
58 0 0 $status->{'jobs'} //= 4
59 0 0 $status->{'queues'} ||= ["default"]
60 0 0 $status->{'performed'} //= 0
61 0 0 $status->{'repair_interval'} //= 21600
63 0 0 $status->{'spare'} //= 1
64 0 0 $status->{'spare_min_priority'} //= 1
76 0 0 $_[1] // ""
93 0 0 shift() // ""
0 0 shift() // ""
108 0 0 $self->{'last_command'} ||= 0
113 0 0 $self->{'last_repair'} ||= 0
120 0 0 $self->{'jobs'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
103 0 0 0 $self->{'last_heartbeat'} ||= -$status->{'heartbeat_interval'}
125 0 0 0 $self->{'finished'} or $status->{'jobs'} + $status->{'spare'} <= @$jobs