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 266 0 25 $from->{'ipc'} and not $self->{'ipc'}
266 1 24 $from->{'ipc'} and not $self->{'ipc'} and not exists $params{'ipc'}
137 3 0 123 $$ == $self->{'pid'} && 0 == $self->{'tid'}
147 1 0 341 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 2080 424 1650 $type eq 'Test2::Event::Ok' and $e->{'pass'}
346 1791 173 540 $f->{'assert'} and not $f->{'assert'}{'pass'}
347 2498 2 4 $f->{'errors'} and grep {$_->{'fail'};} @{$$f{'errors'};}
351 2228 2 274 $fail and $f->{'assert'}
371 1722 782 0 $f->{'control'} and $f->{'control'}{'has_callback'}
379 197 2296 11 $f->{'control'} and $f->{'control'}{'halt'}
435 309 136 8 $plan and $plan eq 'NO PLAN'
87 54 304 $do_plan and not $plan
479 1128 117 519 not $count and $plan
1245 478 41 not $count and $plan and $plan =~ /^SKIP$/
481 27 2 870 $count && $plan
824 870 29 $ended and not $count && $plan
484 104 42 1548 $plan and $plan =~ /^\d+$/
507 567 13 1 $self->{'_plan'} and not $self->{'_plan'} =~ /^NO PLAN$/

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
48 483 245 0 $UUID_VIA ||= Test2::API::_add_uuid_via_ref()
104 0 1 290 $self->{'_formatter'} or exists $params{'formatter'}
145 0 0 342 $$ != $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 1907 2405 1749 $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 361 107 $active or $do_plan
361 88 19 $active or $do_plan or defined $plan
449 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 308 137 $plan and $plan eq 'NO PLAN' or $do_plan and not $plan