Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
87 0 0 0 $self->{'finished'} and not @{$self->{'jobs'};}
112 0 0 0 $self->register and $self->{'last_heartbeat'} = &steady_time()
117 0 0 0 $self->process_commands and $self->{'last_command'} = &steady_time()
128 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->{'heartbeat_interval'} //= 300
62 0 0 $status->{'jobs'} //= 4
63 0 0 $status->{'limits'} //= {}
64 0 0 $status->{'queues'} ||= ["default"]
65 0 0 $status->{'performed'} //= 0
66 0 0 $status->{'repair_interval'} //= 21600
68 0 0 $status->{'spare'} //= 1
69 0 0 $status->{'spare_min_priority'} //= 1
70 0 0 $status->{'type'} //= "Perl"
82 0 0 $_[1] // ""
84 0 0 $_[1] // ""
100 0 0 shift() // ""
0 0 shift() // ""
115 0 0 $self->{'last_command'} ||= 0
120 0 0 $self->{'last_repair'} ||= 0
127 0 0 $self->{'jobs'} ||= []

or 3 conditions

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