Branch Coverage

blib/lib/Disbatch.pm
Criterion Covered Total %
branch 0 82 0.0


line true false branch
48 0 0 defined $type ? :
50 0 0 unless (keys %{'Log::Log4perl'->appenders;})
64 0 0 if defined $self->{'mongo'}
66 0 0 if (keys %{$$self{'config'}{'auth'};})
68 0 0 if $self->{'class'} eq 'disbatch'
69 0 0 if $self->{'class'} eq 'disbatch::web'
70 0 0 if $self->{'class'} eq 'task_runner'
86 0 0 if (not defined $self->{'config'})
106 0 0 if (not defined $self->{'config'}{'mongohost'} && defined $self->{'config'}{'database'})
138 0 0 if exists $self->{'plugins'}{$plugin}
139 0 0 if (not $plugin =~ /^[\w:]+$/u) { }
0 0 elsif (eval "require $plugin; $plugin->new->can('run');") { }
0 0 elsif (eval "require ${plugin}::Task; ${plugin}::Task->new->can('run');") { }
143 0 0 if exists $self->{'old_plugins'}{$plugin}
147 0 0 if exists $self->{'old_plugins'}{$plugin}
206 0 0 unless defined $status
224 0 0 if ($self->{'sort'} eq 'fifo') { }
0 0 elsif ($self->{'sort'} eq 'lifo') { }
0 0 elsif ($self->{'sort'} ne 'default') { }
268 0 0 if $self->{'config'}{'gfs'}
269 0 0 if $self->{'config'}{'quiet'}
270 0 0 if $self->{'config'}{'testing'}
272 0 0 unless (fork)
273 0 0 unless setsid() != -1
274 0 0 unless (exec $command, @args)
289 0 0 if defined $queue_id
290 0 0 if defined $status
291 0 0 if defined $node
324 0 0 if (@{$self->{'config'}{'activequeues'};}) { }
0 0 elsif (@{$self->{'config'}{'ignorequeues'};}) { }
325 0 0 grep(($queue_id->{'value'} eq $_), @{$$self{'config'}{'activequeues'};}) ? :
327 0 0 grep(($queue_id->{'value'} eq $_), @{$$self{'config'}{'ignorequeues'};}) ? :
339 0 0 if defined $node and defined $node->{'maxthreads'} and $node_running >= $node->{'maxthreads'}
342 0 0 if ($self->{'plugins'}{$queue->{'plugin'}} and $self->is_active_queue($queue->{'_id'})) { }
346 0 0 unless defined $task
355 0 0 if $revalidate_plugins
373 0 0 if (defined $metadata)
374 0 0 unless ref $metadata eq 'HASH'
391 0 0 if ($filename_or_id->$Disbatch::_isa('MongoDB::OID')) { }
395 0 0 if defined $filename_or_id
396 0 0 if defined $metadata