Branch Coverage

blib/lib/Test2/AsyncSubtest.pm
Criterion Covered Total %
branch 64 108 59.2


line true false branch
42 0 0 unless eval { do { require threads; "threads"->VERSION("1.34"); 1 } }
51 0 0 @STACK ? :
57 1 845 unless $self->{'name'}
72 1 844 if defined $$UUID_VIA
74 845 0 unless ($self->{'hub'})
100 845 0 unless $hub->ast_ids
117 1 721 if $send_to->ended
157 0 60 unless $id
160 0 60 unless defined $self->{'hub'}->ast_ids->{$id}
163 0 60 if $self->{'hub'}->ast_ids->{$id}
166 0 60 if $self->{'hub'}->is_local
175 0 53 if ($self->{'pid'} == $$ and $self->{'tid'} == 0)
180 0 53 unless my $att = $self->{'_attached'}
183 0 53 unless $att->[0] == $$ and $att->[1] == 0
197 113 2601 unless $hub->is_local
208 0 59 unless $code and ref $code eq "CODE"
219 0 40 if (not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/) { }
232 16 40 unless ($finished)
233 0 16 if (my $bailed = $hub->bailed_out)
240 0 16 if $code
243 1 55 unless ($ok)
266 0 493 if $self->{'finished'}
268 486 7 unless defined $self->{'start_stamp'}
284 0 466 unless $self->{'active'}--
286 0 466 unless @STACK and $self == $STACK[-1]
306 0 722 if $self->{'finished'}++
308 0 722 unless $hub->is_local
312 0 722 if $self->{'active'}
315 322 400 unless defined $self->{'stop_stamp'}
335 722 0 unless $hub->no_ending or $hub->ended
338 722 0 if ($hub->ipc)
343 0 722 if $params{'silent'}
348 75 646 if ($skip) { }
352 3 643 if ($collapse and $empty)
357 2 641 if ($collapse and $no_asserts)
370 0 643 $todo ? :
379 5 638 unless ($e->effective_pass)
383 0 2 if $hub->plan and not $hub->check_plan and not grep({$_->causes_fail;} @{$$self{"events"};})
402 243 0 if (my $child = pop @$children) { }
403 0 243 if (&blessed($child)) { }
418 0 722 if $hub->is_local and keys %{$self->{'hub'}->ast_ids;}
422 0 338 unless &CAN_FORK()
427 0 338 unless (defined $pid)
432 280 58 if ($pid)
447 158 22 unless &blessed($f)
457 0 0 unless CAN_REALLY_THREAD()
484 1 0 unless $$ == $pid and 0 == $tid
487 0 0 if (my $ex = $@)
506 1 751 unless $self->{'name'}
508 0 751 if (my $att = $self->{'_attached'})
509 0 0 unless $self->{'hub'}
513 702 49 if $self->{'finished'}
514 49 0 unless $self->{'pid'} == $$
515 0 0 unless $self->{'tid'} == 0