Branch Coverage

blib/lib/Minion/Worker.pm
Criterion Covered Total %
branch 0 36 0.0


line true false branch
11 0 0 if $_[0]->commands->{$_[1]} = $_[2]
17 0 0 unless my $id = $self->id
20 0 0 unless my $job = $minion->backend->dequeue($id, $wait, $options)
40 0 0 unless my $cb = $self->commands->{shift @$command}
44 0 0 if $called
77 0 0 if ++$self->{'finished'}
82 0 0 if ($_[1] // "") =~ /^\d+$/u
84 0 0 if ($_[1] // "") =~ /^\d+$/u
90 0 0 if $err
101 0 0 unless grep {$signal eq $_;} "INT", "TERM", "KILL", "USR1", "USR2"
112 0 0 if $self->{'last_heartbeat'} + $status->{'heartbeat_interval'} < &steady_time()
117 0 0 if $self->{'last_command'} + $status->{'command_interval'} < &steady_time()
121 0 0 if ($self->{'last_repair'} + $status->{'repair_interval'} < &steady_time())
128 0 0 if ($_->is_finished and ++$status->{'performed'}) { }
132 0 0 if ($self->{'finished'} or $status->{'jobs'} + $status->{'spare'} <= @$jobs) { }
0 0 elsif ($status->{'jobs'} <= @$jobs) { }
137 0 0 unless @$tasks
140 0 0 if $job