| blib/lib/Parallel/Prefork/SpareWorkers.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 7 | 13 | 53.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 66 | 59 | 24 | 12 | $spare_workers < $self->min_spare_workers and $self->num_workers < $self->max_workers |
| line | l | !l | condition |
|---|---|---|---|
| 29 | 0 | 1 | $self->{'heartbeat'} ||= 0.25 |
| 34 | 0 | 1 | $self->{'scoreboard_file'} || undef |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 28 | 1 | 0 | 0 | $self->{'max_spare_workers'} ||= $self->max_workers |
| 30 | 0 | 1 | 0 | $self->{'scoreboard'} ||= do { require 'Parallel/Prefork/SpareWorkers/Scoreboard.pm'; 'Parallel::Prefork::SpareWorkers::Scoreboard'->new($self->{'scoreboard_file'} || undef, $self->max_workers) } |