Branch Coverage

blib/lib/Test/Stream/Hub.pm
Criterion Covered Total %
branch 73 82 89.0


line true false branch
39 5 515 if (my $formatter = delete $self->{'formatter'})
43 136 384 if (my $ipc = $self->{'ipc'})
53 239 1 unless $self->{'_formatter'} or exists $params{'formatter'}
55 232 1 if ($from->{'ipc'} and not $self->{'ipc'} and not exists $params{'ipc'})
61 221 19 if (my $ls = $from->{'_listeners'})
65 12 228 if (my $ms = $from->{'_mungers'})
76 17 3966 @$array ? :
84 1 1 defined $key ? :
2 5 unless $key
88 1 4 unless $default or $exists
90 2 2 unless $exists
99 1 1 defined $key ? :
2 1 unless $key
109 1 21 unless (defined wantarray)
114 1 20 unless (defined $reason)
129 3 3 unless @$array
137 348 249 if @_
153 0 680 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
155 1 679 unless ref $sub and ref $sub eq 'CODE'
167 0 313 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
179 0 10 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
181 1 9 unless ref $sub and ref $sub eq 'CODE'
192 0 1 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
202 0 38 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
204 2 36 unless ref $sub and ref $sub eq 'CODE'
214 0 1 unless ref $sub and ref $sub eq 'CODE'
232 0 1 unless ref $sub and ref $sub eq 'CODE'
252 25 3475 if ($e->global)
258 6 3469 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
267 12 3586 if ($self->{'_mungers'})
270 9 5 unless $e
278 1737 1852 if $self->{'_formatter'}
280 2023 1566 if ($self->{'_listeners'})
285 26 3563 if defined $code
300 0 791 if $self->{'pid'} != $$ or $self->{'tid'} != 0
318 12 7 unless $do_plan or defined $plan or $count or $failed
320 334 2 unless ($state->ended)
321 33 301 if ($self->{'_follow_ups'})
330 316 17 if ($plan and $plan eq 'NO PLAN' or $do_plan and not $plan)
347 1 378 unless $$ == $self->{'pid'}
348 0 378 unless 0 == $self->{'tid'}