Branch Coverage

blib/lib/Test2/AsyncSubtest.pm
Criterion Covered Total %
branch 51 102 50.0


line true false branch
41 0 0 unless eval { do { require threads; 'threads'->VERSION('1.34'); 1 } }
47 0 0 @STACK ? :
53 1 215 unless $self->{'name'}
69 215 0 unless ($self->{'hub'})
83 215 0 unless $hub->ast_ids
101 61 73 if $hub->is_local
104 73 0 if $attached and @$attached and $attached->[0] == $$ and $attached->[1] == 0
138 0 24 unless $id
141 0 24 unless defined $self->{'hub'}->ast_ids->{$id}
144 0 24 if $self->{'hub'}->ast_ids->{$id}
147 0 24 if $self->{'hub'}->is_local
156 0 23 if ($self->{'pid'} == $$ and $self->{'tid'} == 0)
161 0 23 unless my $att = $self->{'_attached'}
164 0 23 unless $att->[0] == $$ and $att->[1] == 0
178 0 2 unless $hub->is_local
189 0 56 unless $code and ref $code eq 'CODE'
200 0 37 if (not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/) { }
213 16 37 unless ($finished)
214 0 16 if (my $bailed = $hub->bailed_out)
221 0 16 if $code
224 1 52 unless ($ok)
239 0 59 if $self->{'finished'}
255 0 56 unless $self->{'active'}--
257 0 56 unless @STACK and $self == $STACK[-1]
275 0 167 if $self->{'finished'}++
277 0 167 unless $hub->is_local
281 0 167 if $self->{'active'}
292 167 0 unless $hub->no_ending or $hub->ended
295 167 0 if ($hub->ipc)
300 0 167 if $params{'silent'}
305 1 166 if ($skip) { }
309 3 163 if ($collapse and $empty)
320 0 163 $todo ? :
329 4 159 unless ($e->effective_pass)
333 0 2 if $hub->plan and not $hub->check_plan and not grep({$_->causes_fail;} @{$$self{'events'};})
352 138 0 if (my $child = pop @$children) { }
353 0 138 if (&blessed($child)) { }
368 0 167 if $hub->is_local and keys %{$self->{'hub'}->ast_ids;}
372 0 180 unless &CAN_FORK()
377 0 180 unless (defined $pid)
382 158 22 if ($pid)
397 158 22 unless &blessed($f)
407 0 0 unless CAN_REALLY_THREAD()
434 1 0 unless $$ == $pid and 0 == $tid
437 0 0 if (my $ex = $@)
456 1 0 unless $self->{'name'}
458 0 0 if (my $att = $self->{'_attached'})
459 0 0 unless $self->{'hub'}
463 0 0 if $self->{'finished'}
464 0 0 unless $self->{'pid'} == $$
465 0 0 unless $self->{'tid'} == 0