Branch Coverage

lib/Sub/Slice.pm
Criterion Covered Total %
branch 80 94 85.1


line true false branch
19 1 25 if @_ % 2
24 1 24 if $backend_name =~ /[^\w:]/
25 22 2 unless $backend_name =~ /::/
27 1 23 if $@
32 18 5 if ($args{'token'}) { }
38 2 16 unless ref $token and UNIVERSAL::isa($token, 'HASH')
42 1 14 unless $$job{'token'}{'pin'} == $$token{'pin'}
45 0 14 if defined $$token{'iterations'}
72 2 18 if ($self->is_done or $self->abort) { }
77 1 17 if ($new_eval_error = $@)
84 1 19 if $new_eval_error
89 1 192 if @_
95 1 72 if @_
101 5 0 if defined $_[0]
106 1 1 if @_
112 1 1 if @_
118 1 50 if @_
124 1 2 if @_
130 0 18 if (defined $_[0])
139 6 0 if defined $_[0]
147 1 28 unless $key
148 1 27 if ref $key
149 26 1 if (ref $value or not $$self{'blob_threshold'} or length $value <= $$self{'blob_threshold'}) { }
160 1 43 unless $key
161 1 42 if ref $key
163 41 1 defined $d ? :
180 1 51 if @_
186 16 4 if (@_)
191 4 0 if ($rv) { }
192 4 0 if $#$rv >= 0
201 2 6 if ref $stage or not defined $stage
209 5 2 if $$self{'initialised'} or $self->stage
214 0 2 if (my $error = $@)
226 0 28 unless defined $this_stage
228 0 28 unless $$self{'initialised'}
229 26 2 if (my $stage = $self->stage) { }
230 17 9 unless defined $this_stage and $this_stage eq $stage
238 6 17 if $self->is_done or $this_stage ne $self->stage
240 5 12 if $iterate and $$self{'this_iteration'} >= $iterate
245 0 12 if (my $error = $@)
257 0 7 unless $$self{'initialised'}
258 5 2 unless $self->is_done
262 0 2 if (my $error = $@)
278 0 5 unless defined $iterations
308 9 7 if ref $token eq 'HASH'
315 4 1 unless $pin_length
347 0 20 if (not exists $$self{$name}) { }