Branch Coverage

blib/lib/Gearman/Task.pm
Criterion Covered Total %
branch 49 74 66.2


line true false branch
190 17 0 unless (ref $self)
195 0 17 unless $self->{'func'} = shift()
198 0 17 unless ref $self->{'argref'} eq 'SCALAR'
226 1 16 if (%{$opts;})
243 6 1 unless $name and $self->{'hooks'}{$name}
246 0 1 if $@
257 0 2 unless $name
259 1 1 if (@_) { }
295 3 3 unless @_
299 1 2 unless &Scalar::Util::blessed($ts) and $ts->isa('Gearman::Taskset')
303 2 0 if (my $hash_num = $self->hash) { }
322 3 3 $self->{'uniq'} && $self->{'uniq'} eq '-' ? :
323 6 0 if (${$merge_on;}) { }
341 0 0 $client ? :
357 1 4 if $self->{'is_finished'}
360 1 3 if ($self->{'retries_done'} < $self->{'retry_count'})
362 1 0 if $self->{'on_retry'}
391 0 4 if $self->{'is_finished'}
396 3 1 if $self->{'on_fail'}
397 0 4 if $self->{'on_post_hooks'}
419 2 0 if $self->{'on_exception'}
431 0 2 if $self->{'is_finished'}
437 2 0 if $self->{'on_complete'}
438 0 2 if $self->{'on_post_hooks'}
448 0 2 if $self->{'is_finished'}
449 0 2 unless $self->{'on_status'}
462 0 2 if $self->{'is_finished'}
465 2 0 if $self->{'on_data'}
476 0 1 if $self->{'is_finished'}
477 0 1 unless $self->{'on_warning'}
498 2 0 if (@_)
587 0 1 if (@_)
602 6 3 if ($self->_priority ne 'normal')
606 4 5 if ($self->{'background'})
639 2 33 if ($self->{'high_priority'})
648 6 29 if ($priority)
649 0 6 unless $priority =~ /^(high|normal|low)$/