Condition Coverage

blib/lib/POE/Component/SmokeBox/JobQueue.pm
Criterion Covered Total %
condition 13 26 50.0


and 2 conditions

line l !l condition
180 0 50 ref $_[0] eq 'ARRAY' and scalar @{$_[0];}

and 3 conditions

line !l l&&!r l&&r condition
91 183 5 2 exists $self->{'paused'} and $self->{'paused'} == 2
98 75 6 9 $job->{'job'}->delay > 0 and not defined $delaydone
81 3 6 $job->{'job'}->delay > 0 and not defined $delaydone and scalar @{$job->{'smokers'};} > 0
175 0 0 50 ref $_[0] and $_[0]->isa('POE::Component::SmokeBox::Job')
180 0 0 50 ref $_[0] eq 'ARRAY' and scalar @{$_[0];} and grep({$_->isa('POE::Component::SmokeBox::Smoker');} @{$_[0];}) == @{$_[0];}
267 0 0 50 $type and grep {/^\Q$type\E$/;} 'push', 'unshift'
278 0 0 0 $type and grep {/^\Q$type\E$/;} 'pop', 'shift'
0 0 0 $type and defined $self->{'_jobs'}{$type}