Branch Coverage

blib/lib/Gearman/Task.pm
Criterion Covered Total %
branch 45 62 72.5


line true false branch
160 4 0 unless (ref $self)
165 0 4 unless $self->{'func'} = shift()
168 0 4 unless ref $self->{'argref'} eq 'SCALAR'
192 1 3 if (%{$opts;})
209 4 1 unless $name and $self->{'hooks'}{$name}
212 0 1 if $@
223 0 2 unless $name
225 1 1 if (@_) { }
261 3 4 unless @_
265 1 3 unless &Scalar::Util::blessed($ts) and $ts->isa('Gearman::Taskset')
269 2 1 if (my $hash_num = $self->hash) { }
288 3 4 $self->{'uniq'} && $self->{'uniq'} eq '-' ? :
289 6 1 if (${$merge_on;}) { }
307 1 0 if ($client and $client->prefix)
325 1 3 if $self->{'is_finished'}
328 1 2 if ($self->{'retries_done'} < $self->{'retry_count'})
330 1 0 if $self->{'on_retry'}
359 0 3 if $self->{'is_finished'}
364 1 2 if $self->{'on_fail'}
365 0 3 if $self->{'on_post_hooks'}
384 1 0 if $self->{'on_exception'}
396 0 1 if $self->{'is_finished'}
402 1 0 if $self->{'on_complete'}
403 0 1 if $self->{'on_post_hooks'}
413 0 1 if $self->{'is_finished'}
414 0 1 unless $self->{'on_status'}
433 2 0 if (@_)
522 0 1 if (@_)
544 1 2 $self->{'high_priority'} ? :
1 1 $self->{'high_priority'} ? :
3 2 $self->{'background'} ? :