Branch Coverage

blib/lib/Test/Stream/Context.pm
Criterion Covered Total %
branch 66 68 97.0


line true false branch
36 1 2 if $_
37 1 107 if (@unreleased)
52 3 1 @_ > 1 ? :
62 1 886 unless $_[0]{'debug'}
65 1 885 unless $_[0]{'hub'}
67 884 1 unless defined $_[0]{'_depth'}
76 511 3262 if &Internals::SvREFCNT(\%$self) != 2
81 1 3261 if (not $CONTEXTS{$hid} or $self != $CONTEXTS{$hid})
91 2 3259 if (my $cbk = $self->{'_on_release'})
94 32 3229 if (my $hcbk = $hub->{'_context_release'})
105 2 4316 unless $self->{'hub'}
108 4311 5 unless $CONTEXTS{$hid} and $CONTEXTS{$hid} == $self
109 3 2 unless "$@" eq '' . $self->{'_err'}
116 1 1 unless $self->{'_no_destroy_warning'} or $self->{'debug'}->pid != $$ or $self->{'debug'}->tid != 0
129 0 2 if (my $cbk = $self->{'_on_release'})
132 1 1 if (my $hcbk = $self->{'hub'}{'_context_release'})
150 144 63 if ($old) { }
157 1 206 unless $ok
163 1 3776 unless defined wantarray
167 3763 13 $params{'hub'} || @$stack ? :
173 2 3774 unless ($pkg)
174 1 1 unless $params{'fudge'}
182 1 508 if ($current and $params{'on_release'} and $current->{'_depth'} < $depth)
187 508 3267 if $current and $current->{'_depth'} < $depth
190 1 3266 if $current
210 2 3265 $params{'on_release'} ? :
219 35 3232 if (my $hcbk = $hub->{'_context_init'})
223 2 3265 if $params{'on_init'}
315 2804 180 if $pass
339 16 14 if ($directive and $directive =~ /skip/i)
361 2 28 if ($event =~ /^\+(.*)/) { }
368 28 2 unless ($LOADED{$pkg})
371 1 27 unless $ok
377 0 29 unless $pkg->isa('Test::Stream::Event')