Branch Coverage

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


line true false branch
10 0 0 if $_[0]->commands->{$_[1]} = $_[2]
16 0 0 unless my $id = $self->id
19 0 0 unless my $job = $minion->backend->dequeue($id, $wait, $options)
38 0 0 unless my $cb = $self->commands->{shift @$command}
71 0 0 if ++$self->{'finished'}
76 0 0 if ($_[1] // "") =~ /^\d+$/u
83 0 0 if $err
94 0 0 unless grep {$signal eq $_;} "INT", "TERM", "KILL", "USR1", "USR2"
105 0 0 if $self->{'last_heartbeat'} + $status->{'heartbeat_interval'} < &steady_time()
110 0 0 if $self->{'last_command'} + $status->{'command_interval'} < &steady_time()
114 0 0 if ($self->{'last_repair'} + $status->{'repair_interval'} < &steady_time())
121 0 0 $_->is_finished && ++$status->{'performed'} ? :
125 0 0 if ($self->{'finished'} or $status->{'jobs'} + $status->{'spare'} <= @$jobs) { }
0 0 elsif ($status->{'jobs'} <= @$jobs) { }
131 0 0 if $job