Branch Coverage

inc/Test2/Hub.pm
Criterion Covered Total %
branch 47 126 37.3


line true false branch
48 0 15 if (my $formatter = delete $self->{'formatter'})
52 0 15 if (my $ipc = $self->{'ipc'})
77 9 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 9 if (my $ls = $from->{'_listeners'})
89 9 0 if (my $pfs = $from->{'_pre_filters'})
93 0 9 if (my $fs = $from->{'_filters'})
102 6 39 if @_
118 0 9 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
120 0 9 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 15 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 77 0 if ($self->{'_pre_filters'})
256 0 111 unless $e
262 0 0 if ($e->global)
268 0 0 if $$ != $self->{'pid'} or 0 != $self->{'tid'}
277 0 77 if ($self->{'_filters'})
280 0 0 unless $e
287 9 24 $no_fail ? :
44 33 $is_ok ? :
290 53 24 if $counted
291 0 77 if $causes_fail and $counted
292 0 77 if $causes_fail
294 24 53 unless $is_ok or $no_fail
298 77 0 if $self->{'_formatter'}
300 34 43 if ($self->{'_listeners'})
304 53 24 if $is_ok or $no_fail
307 0 24 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 15 0 unless ($self->{'ended'})
349 0 15 if ($self->{'_follow_ups'})
358 15 0 if ($plan and $plan eq 'NO PLAN' or $do_plan and not $plan)
370 0 15 if ($self->{'ended'})
384 15 0 if $self->{'_formatter'}
392 0 63 if @_
395 0 63 unless my $pass = $self->{'_passing'}
396 0 63 if $self->{'failed'}
402 0 0 if not $count and $plan and $plan =~ /^SKIP$/
404 0 63 if $ended and not $count && $plan
407 0 63 unless $plan and $plan =~ /^\d+$/
409 63 0 if ($ended) { }
410 0 63 if $count != $plan
413 0 0 if $count > $plan
422 83 16 unless @_
426 0 16 unless defined $plan
430 0 16 if $self->{'_plan'} and not $self->{'_plan'} =~ /^NO PLAN$/
432 0 16 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'}