Branch Coverage

inc/Test2/API/Context.pm
Criterion Covered Total %
branch 15 68 22.0


line true false branch
40 0 6 unless $self->{'trace'}
43 0 6 unless $self->{'hub'}
45 6 0 unless defined $self->{'_depth'}
47 6 0 unless exists $self->{'errno'}
48 6 0 unless exists $self->{'eval_error'}
49 6 0 unless exists $self->{'child_error'}
60 246 0 unless $_[0]{'_is_canon'} or $_[0]{'_is_spawn'}
61 0 0 if $_[0]{'_aborted'} and ${$_[0]{'_aborted'};}
73 0 0 if ($self->{'eval_error'} eq $@ and $hub->is_local)
95 0 0 if $self->{'_is_spawn'}
101 0 0 if (my $cbk = $self->{'_on_release'})
104 0 0 if (my $hcbk = $hub->{'_context_release'})
117 0 231 if $self->{'thrown'}
120 139 92 if $self->{'_is_spawn'}
123 0 92 unless $self->{'_is_canon'}
129 0 92 unless $CONTEXTS->{$hid} and $CONTEXTS->{$hid} == $self
135 0 92 if (my $cbk = $self->{'_on_release'})
138 0 92 if (my $hcbk = $hub->{'_context_release'})
174 0 0 if ($old) { }
182 0 0 unless $ok
183 0 0 unless $rok
195 0 0 if $self->{'_aborted'}
196 0 0 if $self->{'_is_canon'} or $self->{'_is_spawn'}
217 0 9 if $self->{'_aborted'} and defined $e->terminate
248 0 0 if $pass
252 0 0 if ($on_fail and @$on_fail)
254 0 0 if (ref $of eq 'CODE' or &blessed($of) and $of->can('render')) { }
275 0 0 $ENV{'HARNESS_ACTIVE'} && !$ENV{'HARNESS_IS_VERBOSE'} ? :
282 0 0 $trace ? :
286 0 0 defined $name ? :
342 0 0 if ($event =~ /^\+(.*)/) { }
349 0 0 unless ($LOADED{$pkg})
352 0 0 unless $ok
358 0 0 unless $pkg->isa('Test2::Event')