Condition Coverage

blib/lib/Minion/Worker/Role/Kevin.pm
Criterion Covered Total %
condition 1 43 2.3


and 2 conditions

line l !l condition
129 0 0 ++$self->{'finished'} and return

and 3 conditions

line !l l&&!r l&&r condition
92 0 0 0 $self->{'stopping'} and not $self->{'quit'}++
103 0 0 0 $status->{'heartbeat_interval'} and $self->{'next_heartbeat'} < &steady_time()
110 0 0 0 $status->{'command_interval'} and $self->{'next_command'} < &steady_time()
117 0 0 0 $status->{'repair_interval'} and $self->{'next_repair'} < &steady_time()
126 0 0 0 $jobs->{$_}->is_finished and ++$status->{'performed'}
0 0 0 $jobs->{$_}->is_finished and ++$status->{'performed'} and delete $jobs->{$_}
129 0 0 0 $self->{'stopping'} and not keys %{$$self{'jobs'};}

or 2 conditions

line l !l condition
10 0 1 $ENV{'KEVIN_WORKER_TRACE'} || 0
29 0 0 $self->{'defaults'} // {}
0 0 $self->{'_run_defaults'} //= {%{$self->_defaults;}, %{$self->{'defaults'} // {};}}
39 0 0 $status->{'performed'} //= 0
62 0 0 $_[1] // ''
64 0 0 $_[1] // ''
124 0 0 $self->{'jobs'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
38 0 0 0 $status->{$_} //= $defaults->{$_}
133 0 0 0 $status->{'jobs'} <= keys %$jobs or $self->{'stopping'}