Branch Coverage

blib/lib/POE/Component/JobQueue.pm
Criterion Covered Total %
branch 31 58 53.4


line true false branch
24 0 2 if @_ % 2
31 0 2 unless defined $alias and length $alias
34 0 2 unless defined $worker and ref $worker eq 'CODE'
38 0 2 unless defined $worker_limit and $worker_limit > 0
40 0 2 unless defined $params{'Active'} xor defined $params{'Passive'}
55 1 1 if (exists $params{'Active'}) { }
1 0 elsif (exists $params{'Passive'}) { }
59 1 0 unless defined $poll_interval and $poll_interval > 0
63 0 1 unless defined $ack_alias and length $ack_alias
66 0 1 unless defined $ack_state and length $ack_state
68 0 1 if defined $ack_alias xor defined $ack_state
82 1 0 unless defined $prioritizer
84 0 1 if scalar keys %$passive
95 0 2 if scalar keys %params
133 10 0 if defined $session
183 20 20 if ($operation eq 'gain' or $operation eq 'create') { }
193 0 20 if $$heap{'worker_count'} > $$heap{'worker_limit'}
197 16 4 unless $$heap{'latest_worker'} or $$heap{'stopped'}
211 0 0 if $$heap{'pollinterval'}
212 0 0 if $$heap{'job_queue'}
233 0 7 if (defined $is_timed and $is_timed == 31415)
236 0 0 if --$$heap{'pending_polls'}
252 1 10 if ($$heap{'worker_count'} == $previous_worker_count)
253 0 1 if (defined $$heap{'poll_interval'} and not $$heap{'pending_polls'})
257 1 0 unless defined $$heap{'poll_interval'}
276 5 10 unless defined $next_job
295 0 10 if ($$heap{'stopped'})
306 10 0 if (defined $return_state)
316 9 0 if $$heap{'prioritizer'}($$heap{'job_queue'}[$queue_index], \@job) >= 0