Branch Coverage

blib/lib/Test2/API/Context.pm
Criterion Covered Total %
branch 53 66 80.3


line true false branch
40 1 71 unless $self->{'trace'}
43 1 70 unless $self->{'hub'}
45 69 1 unless defined $self->{'_depth'}
47 70 0 unless exists $self->{'errno'}
48 70 0 unless exists $self->{'eval_error'}
49 70 0 unless exists $self->{'child_error'}
60 1276 5 unless $_[0]{'_is_canon'} or $_[0]{'_is_spawn'}
61 4 10 if $_[0]{'_aborted'} and ${$_[0]{'_aborted'};}
69 4 6 if ($self->{'eval_error'} eq $@ and $hub->is_local)
90 5 5 if $self->{'_is_spawn'}
96 0 5 if (my $cbk = $self->{'_on_release'})
99 1 4 if (my $hcbk = $hub->{'_context_release'})
113 85 1103 if $self->{'_is_spawn'}
116 1 1102 unless $self->{'_is_canon'}
122 0 1102 unless $CONTEXTS->{$hid} and $CONTEXTS->{$hid} == $self
128 2 1100 if (my $cbk = $self->{'_on_release'})
131 38 1064 if (my $hcbk = $hub->{'_context_release'})
167 1 1 if ($old) { }
175 1 1 unless $ok
176 0 1 unless $rok
187 2 0 if $self->{'_aborted'}
188 2 0 if $self->{'_is_canon'} or $self->{'_is_spawn'}
239 954 15 if $pass
243 11 4 if ($diag and @$diag)
259 23 0 $ENV{'HARNESS_ACTIVE'} && !$ENV{'HARNESS_IS_VERBOSE'} ? :
266 23 0 $trace ? :
270 18 5 defined $name ? :
307 3 10 if $self->{'_aborted'} and $directive and $directive =~ /^(SKIP|skip_all)$/
313 1 0 if $self->{'_aborted'}
322 2 1 if ($event =~ /^\+(.*)/) { }
329 1 2 unless ($LOADED{$pkg})
332 1 0 unless $ok
338 0 2 unless $pkg->isa('Test2::Event')