Branch Coverage

inc/Test2/Hub.pm
Criterion Covered Total %
branch 39 126 30.9


line true false branch
48 0 1 if (my $formatter = delete $self->{'formatter'})
52 0 1 if (my $ipc = $self->{'ipc'})
77 0 0 unless $self->{'_formatter'} or exists $params{'formatter'}
79 0 0 if ($from->{'ipc'} and not $self->{'ipc'} and not exists $params{'ipc'})
85 0 0 if (my $ls = $from->{'_listeners'})
89 0 0 if (my $pfs = $from->{'_pre_filters'})
93 0 0 if (my $fs = $from->{'_filters'})
102 1 5 if @_
118 0 0 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
120 0 0 unless ref $sub and ref $sub eq 'CODE'
132 0 0 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
144 0 0 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
146 0 0 unless ref $sub and ref $sub eq 'CODE'
157 0 0 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
166 0 1 unless ref $sub and ref $sub eq 'CODE'
185 0 0 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
187 0 0 unless ref $sub and ref $sub eq 'CODE'
198 0 0 unless ref $sub and ref $sub eq 'CODE'
217 0 0 unless ref $sub and ref $sub eq 'CODE'
235 0 0 unless ref $sub and ref $sub eq 'CODE'
253 124 0 if ($self->{'_pre_filters'})
256 0 124 unless $e
262 0 0 if ($e->global)
268 0 0 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
277 0 124 if ($self->{'_filters'})
280 0 0 unless $e
287 0 1 $no_fail ? :
123 1 $is_ok ? :
290 123 1 if $counted
291 0 124 if $causes_fail and $counted
292 0 124 if $causes_fail
294 1 123 unless $is_ok or $no_fail
298 124 0 if $self->{'_formatter'}
300 0 124 if ($self->{'_listeners'})
304 123 1 if $is_ok or $no_fail
307 0 1 if (defined $code)
308 0 0 if $self->{'_formatter'}
325 0 0 if $self->{'pid'} != $$ or $self->{'tid'} != 0
343 0 0 unless ($active or $do_plan or defined $plan or $count or $failed)
344 0 0 if $self->{'_formatter'}
348 1 0 unless ($self->{'ended'})
349 0 1 if ($self->{'_follow_ups'})
358 0 1 if ($plan and $plan eq 'NO PLAN' or $do_plan and not $plan)
370 0 1 if ($self->{'ended'})
384 1 0 if $self->{'_formatter'}
392 0 3 if @_
395 0 3 unless my $pass = $self->{'_passing'}
396 0 3 if $self->{'failed'}
402 0 0 if not $count and $plan and $plan =~ /^SKIP$/
404 0 3 if $ended and not $count && $plan
407 0 3 unless $plan and $plan =~ /^\d+$/
409 3 0 if ($ended) { }
410 0 3 if $count != $plan
413 0 0 if $count > $plan
422 4 1 unless @_
426 0 1 unless defined $plan
430 0 1 if $self->{'_plan'} and not $self->{'_plan'} =~ /^NO PLAN$/
432 0 1 unless $plan =~ /^(\d+|NO PLAN|SKIP)$/
441 0 0 unless $self->{'ended'}
444 0 0 unless $plan =~ /^\d+$/
446 0 0 if $plan == $self->{'count'}
453 0 0 unless $$ == $self->{'pid'}
454 0 0 unless 0 == $self->{'tid'}