Branch Coverage

blib/lib/POE/Component/SmokeBox.pm
Criterion Covered Total %
branch 22 36 61.1


line true false branch
17 7 2 unless exists $params{'delay'}
19 4 5 ref $options eq 'HASH' ? :
46 0 3 if (defined $_[1]) { }
48 0 0 if (not $_[1] =~ /^\d+$/) { }
71 0 9 if ($self->{'alias'}) { }
79 0 6 unless $smokers and ref $smokers eq "ARRAY" and scalar @{$smokers;}
86 0 9 if ($self->{'alias'}) { }
108 0 31 unless ($smoker and $smoker->isa("POE::Component::SmokeBox::Smoker"))
114 17 14 if ($self->{'multiplicity'} or scalar @{$self->{'queues'};} == 0)
130 0 11 unless ($smoker and $smoker->isa("POE::Component::SmokeBox::Smoker"))
138 8 21 if $_ == $smoker
141 3 14 unless (scalar @{$queue->{'smokers'};})
157 0 36 if $self->{'_shutdown'}
159 0 36 if (ref $_[10] eq 'HASH') { }
168 0 36 unless ($args->{'event'})
173 0 36 unless ($args->{'job'} and $args->{'job'}->isa("POE::Component::SmokeBox::Job"))
178 0 36 if ($args->{'session'} and my $ref = $kernel->alias_resolve($args->{'session'})) { }
185 0 36 unless scalar @{$self->{'queues'};}