Branch Coverage

blib/lib/Test/Stream/Hub.pm
Criterion Covered Total %
branch 82 94 87.2


line true false branch
40 5 519 if (my $formatter = delete $self->{'formatter'})
44 137 387 if (my $ipc = $self->{'ipc'})
54 240 1 unless $self->{'_formatter'} or exists $params{'formatter'}
56 233 1 if ($from->{'ipc'} and not $self->{'ipc'} and not exists $params{'ipc'})
62 222 19 if (my $ls = $from->{'_listeners'})
66 0 241 if (my $ms = $from->{'_mungers'})
70 12 229 if (my $fs = $from->{'_filters'})
81 17 3997 @$array ? :
89 1 1 defined $key ? :
2 5 unless $key
93 1 4 unless $default or $exists
95 2 2 unless $exists
104 1 1 defined $key ? :
2 1 unless $key
114 1 21 unless (defined wantarray)
119 1 20 unless (defined $reason)
134 3 3 unless @$array
142 349 250 if @_
158 0 684 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
160 1 683 unless ref $sub and ref $sub eq 'CODE'
172 0 314 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
186 0 4 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
188 1 3 unless ref $sub and ref $sub eq 'CODE'
199 0 1 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
209 0 10 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
211 1 9 unless ref $sub and ref $sub eq 'CODE'
222 0 1 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
232 0 38 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
234 2 36 unless ref $sub and ref $sub eq 'CODE'
244 0 1 unless ref $sub and ref $sub eq 'CODE'
262 0 1 unless ref $sub and ref $sub eq 'CODE'
282 25 3503 if ($e->global)
288 6 3497 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
297 6 3629 if ($self->{'_mungers'})
300 3 5 unless $e
304 12 3620 if ($self->{'_filters'})
307 9 5 unless $e
315 1748 1875 if $self->{'_formatter'}
317 2044 1579 if ($self->{'_listeners'})
322 26 3597 if defined $code
337 0 794 if $self->{'pid'} != $$ or $self->{'tid'} != 0
355 12 7 unless $do_plan or defined $plan or $count or $failed
357 335 2 unless ($state->ended)
358 33 302 if ($self->{'_follow_ups'})
367 317 17 if ($plan and $plan eq 'NO PLAN' or $do_plan and not $plan)
384 1 380 unless $$ == $self->{'pid'}
385 0 380 unless 0 == $self->{'tid'}