Condition Coverage

blib/lib/Test2/Hub.pm
Criterion Covered Total %
condition 105 136 77.2


and 3 conditions

line !l l&&!r l&&r condition
73 1 0 54 $self->{'pid'} == $$ and $self->{'tid'} == 0
106 267 0 25 $from->{'ipc'} and not $self->{'ipc'}
267 1 24 $from->{'ipc'} and not $self->{'ipc'} and not exists $params{'ipc'}
137 3 0 124 $$ == $self->{'pid'} && 0 == $self->{'tid'}
147 1 0 342 ref $sub and ref $sub eq 'CODE'
173 1 0 10 ref $sub and ref $sub eq 'CODE'
193 1 0 481 ref $sub and ref $sub eq 'CODE'
214 2 0 2 ref $sub and ref $sub eq 'CODE'
225 0 0 1 ref $sub and ref $sub eq 'CODE'
244 0 0 1 ref $sub and ref $sub eq 'CODE'
262 0 0 1 ref $sub and ref $sub eq 'CODE'
332 2068 424 1664 $type eq 'Test2::Event::Ok' and $e->{'pass'}
346 1792 160 540 $f->{'assert'} and not $f->{'assert'}{'pass'}
347 2486 2 4 $f->{'errors'} and grep {$_->{'fail'};} @{$$f{'errors'};}
351 2216 2 274 $fail and $f->{'assert'}
371 1709 783 0 $f->{'control'} and $f->{'control'}{'has_callback'}
379 197 2284 11 $f->{'control'} and $f->{'control'}{'halt'}
435 310 136 8 $plan and $plan eq 'NO PLAN'
87 54 305 $do_plan and not $plan
479 1130 117 519 not $count and $plan
1247 478 41 not $count and $plan and $plan =~ /^SKIP$/
481 27 2 872 $count && $plan
824 872 29 $ended and not $count && $plan
484 104 42 1550 $plan and $plan =~ /^\d+$/
507 568 13 1 $self->{'_plan'} and not $self->{'_plan'} =~ /^NO PLAN$/

or 2 conditions

line l !l condition
101 0 292 $self->{'nested'} ||= 0
306 692 5324 $self->{'ipc'} || (return $self->process($e))
360 22 2 $plan->{'details'} || 1
361 0 24 $code ||= 0
380 9 2 $code ||= 255
401 744 479 $self->{'ipc'} || (return)
519 115 9 $self->{'_plan'} || (return undef)
529 51 414 $self->{'ipc'} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
48 484 245 0 $UUID_VIA ||= Test2::API::_add_uuid_via_ref()
104 0 1 291 $self->{'_formatter'} or exists $params{'formatter'}
145 0 0 343 $$ != $self->{'pid'} or 0 != $self->{'tid'}
159 0 0 1 $$ != $self->{'pid'} or 0 != $self->{'tid'}
171 0 0 11 $$ != $self->{'pid'} or 0 != $self->{'tid'}
184 0 0 2 $$ != $self->{'pid'} or 0 != $self->{'tid'}
212 0 0 4 $$ != $self->{'pid'} or 0 != $self->{'tid'}
314 10 0 681 $$ != $self->{'pid'} or 0 != $self->{'tid'}
332 1909 2406 1750 $type eq 'Test2::Event::Pass' or $type eq 'Test2::Event::Ok' and $e->{'pass'}
402 7 0 737 $self->{'pid'} != $$ or $self->{'tid'} != 0
420 0 362 107 $active or $do_plan
362 88 19 $active or $do_plan or defined $plan
450 4 15 $active or $do_plan or defined $plan or $count
92 3 12 $active or $do_plan or defined $plan or $count or $failed
435 8 309 137 $plan and $plan eq 'NO PLAN' or $do_plan and not $plan