| blib/lib/Parallel/Fork/BossWorkerAsync.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 34 | 50 | 68.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 119 | 37 | 6 | 0 | $self->{'pending'} == 0 and $self->{'shutting_down'} |
| 190 | 1 | 72 | 54 | $blocking and not $makeblocking |
| 72 | 0 | 1 | not $blocking and $makeblocking | |
| 325 | 59 | 0 | 6 | $self->{'shutting_down'} and not @{$self->{'job_queue'};} |
| 59 | 0 | 6 | $self->{'shutting_down'} and not @{$self->{'job_queue'};} and not @{$self->{'result_queue'};} | |
| 627 | 0 | 50 | 73 | $rcount and $iam ne 'boss' |
| line | l | !l | condition |
|---|---|---|---|
| 29 | 5 | 23 | $attrs{'init_handler'} || undef |
| 5 | 23 | $attrs{'exit_handler'} || undef | |
| 28 | 0 | $attrs{'result_handler'} || undef | |
| 3 | 25 | $attrs{'worker_count'} || 3 | |
| 3 | 25 | $attrs{'global_timeout'} || 0 | |
| 5 | 23 | $attrs{'msg_delimiter'} || "\000\000\000" | |
| 0 | 28 | $attrs{'read_size'} || 1048576 | |
| 0 | 28 | $attrs{'verbose'} || 0 | |
| 148 | 0 | 6 | $args{'force'} ||= 0 |
| 698 | 0 | 16 | $@ || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 37 | 0 | 28 | 0 | ref $class || $class |
| 111 | 30 | 0 | 1 | $args{'blocking'} or @{$self->{'result_queue'};} |
| 339 | 0 | 0 | 6 | $busy or $partials |
| 369 | 48 | 0 | 55 | @{$self->{'job_queue'};} or exists $workers->{$s}{'partial_job'} |