Condition Coverage

blib/lib/Kevin/Command/kevin/worker.pm
Criterion Covered Total %
condition 1 46 2.1


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
77 0 0 0 $self->{'stopping'} and not $self->{'quit'}++
88 0 0 0 $status->{'heartbeat_interval'} and $self->{'next_heartbeat'} < &steady_time()
95 0 0 0 $status->{'command_interval'} and $self->{'next_command'} < &steady_time()
102 0 0 0 $status->{'repair_interval'} and $self->{'next_repair'} < &steady_time()
111 0 0 0 $jobs->{$_}->is_finished and ++$status->{'performed'}
0 0 0 $jobs->{$_}->is_finished and ++$status->{'performed'} and delete $jobs->{$_}
114 0 0 0 $self->{'stopping'} and not keys %{$$self{'jobs'};}

or 2 conditions

line l !l condition
11 0 1 $ENV{'KEVIN_WORKER_TRACE'} || 0
19 0 0 $status->{'performed'} //= 0
27 0 0 $status->{'command_interval'} //= 10
0 0 $status->{'heartbeat_interval'} //= 300
0 0 $status->{'jobs'} //= 4
0 0 $status->{'queues'} //= []
0 0 $status->{'repair_interval'} //= 21600
49 0 0 $_[1] // ''
51 0 0 $_[1] // ''
109 0 0 $self->{'jobs'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
117 0 0 0 $status->{'jobs'} <= keys %$jobs or $self->{'stopping'}