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'}
68 215 0 unless ($self->{'hub'})
86 215 0 unless $hub->ast_ids
104 61 73 if $hub->is_local
107 73 0 if $attached and @$attached and $attached->[0] == $$ and $attached->[1] == 0
141 0 24 unless $id
144 0 24 unless defined $self->{'hub'}->ast_ids->{$id}
147 0 24 if $self->{'hub'}->ast_ids->{$id}
150 0 24 if $self->{'hub'}->is_local
159 0 23 if ($self->{'pid'} == $$ and $self->{'tid'} == 0)
164 0 23 unless my $att = $self->{'_attached'}
167 0 23 unless $att->[0] == $$ and $att->[1] == 0
181 0 2 unless $hub->is_local
192 0 56 unless $code and ref $code eq 'CODE'
203 0 37 if (not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/) { }
216 16 37 unless ($finished)
217 0 16 if (my $bailed = $hub->bailed_out)
224 0 16 if $code
227 1 52 unless ($ok)
242 0 59 if $self->{'finished'}
258 0 56 unless $self->{'active'}--
260 0 56 unless @STACK and $self == $STACK[-1]
278 0 167 if $self->{'finished'}++
280 0 167 unless $hub->is_local
284 0 167 if $self->{'active'}
295 167 0 unless $hub->no_ending or $hub->ended
298 167 0 if ($hub->ipc)
303 0 167 if $params{'silent'}
308 1 166 if ($skip) { }
312 3 163 if ($collapse and $empty)
323 0 163 $todo ? :
332 4 159 unless ($e->effective_pass)
336 0 2 if $hub->plan and not $hub->check_plan and not grep({$_->causes_fail;} @{$$self{'events'};})
355 138 0 if (my $child = pop @$children) { }
356 0 138 if (&blessed($child)) { }
371 0 167 if $hub->is_local and keys %{$self->{'hub'}->ast_ids;}
375 0 180 unless &CAN_FORK()
380 0 180 unless (defined $pid)
385 158 22 if ($pid)
400 158 22 unless &blessed($f)
410 0 0 unless CAN_REALLY_THREAD()
437 1 0 unless $$ == $pid and 0 == $tid
440 0 0 if (my $ex = $@)
459 1 0 unless $self->{'name'}
461 0 0 if (my $att = $self->{'_attached'})
462 0 0 unless $self->{'hub'}
466 0 0 if $self->{'finished'}
467 0 0 unless $self->{'pid'} == $$
468 0 0 unless $self->{'tid'} == 0