Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
88 0 0 0 $self->{'finished'} and not @{$self->{'jobs'};}
113 0 0 0 $self->register and $self->{'last_heartbeat'} = &steady_time()
118 0 0 0 $self->process_commands and $self->{'last_command'} = &steady_time()
129 0 0 0 $status->{'dispatch_interval'} and $self->{'last_dispatch'} + $status->{'dispatch_interval'} < &steady_time()
136 0 0 0 $_->is_finished && ++$status->{'performed'}

or 2 conditions

line l !l condition
59 0 0 $status->{'command_interval'} //= 10
60 0 0 $status->{'dequeue_timeout'} //= 5
61 0 0 $status->{'dispatch_interval'} //= 30
62 0 0 $status->{'heartbeat_interval'} //= 300
63 0 0 $status->{'jobs'} //= 4
64 0 0 $status->{'limits'} //= {}
65 0 0 $status->{'queues'} ||= ["default"]
66 0 0 $status->{'performed'} //= 0
67 0 0 $status->{'repair_interval'} //= 21600
69 0 0 $status->{'spare'} //= 1
70 0 0 $status->{'spare_min_priority'} //= 1
71 0 0 $status->{'type'} //= "Perl"
83 0 0 $_[1] // ""
85 0 0 $_[1] // ""
101 0 0 shift() // ""
0 0 shift() // ""
116 0 0 $self->{'last_command'} ||= 0
121 0 0 $self->{'last_repair'} ||= 0
128 0 0 $self->{'last_dispatch'} ||= 0
135 0 0 $self->{'jobs'} ||= []

or 3 conditions

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