Condition Coverage

blib/lib/Test2/Hub.pm
Criterion Covered Total %
condition 86 117 73.5


and 2 conditions

line l !l condition
283 9 17 $self->{'failed'}++ and $self->{'_passing'} = 0

and 3 conditions

line !l l&&!r l&&r condition
76 34 0 26 $from->{'ipc'} and not $self->{'ipc'}
34 1 25 $from->{'ipc'} and not $self->{'ipc'} and not exists $params{'ipc'}
103 2 0 4 $$ == $self->{'pid'} && 0 == $self->{'tid'}
113 1 0 58 ref $sub and ref $sub eq 'CODE'
139 1 0 10 ref $sub and ref $sub eq 'CODE'
159 1 0 3 ref $sub and ref $sub eq 'CODE'
180 2 0 2 ref $sub and ref $sub eq 'CODE'
191 0 0 1 ref $sub and ref $sub eq 'CODE'
210 0 0 1 ref $sub and ref $sub eq 'CODE'
228 0 0 1 ref $sub and ref $sub eq 'CODE'
282 96 125 42 not $no_fail and $e->increments_count
342 88 6 1 $plan and $plan eq 'NO PLAN'
11 0 83 $do_plan and not $plan
382 174 12 2 not $count and $plan
186 0 2 not $count and $plan and $plan =~ /^SKIP$/
384 8 2 111 $count && $plan
65 111 10 $ended and not $count && $plan
387 65 0 111 $plan and $plan =~ /^\d+$/
410 107 2 1 $self->{'_plan'} and not $self->{'_plan'} =~ /^NO PLAN$/

or 2 conditions

line l !l condition
253 646 603 $self->{'ipc'} || (return $self->process($e))
312 70 73 $self->{'ipc'} || (return)
375 196 12 $self->{'_passing'} || (return 0)
422 32 8 $self->{'_plan'} || (return undef)
432 51 63 $self->{'ipc'} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
74 0 0 60 $self->{'_formatter'} or exists $params{'formatter'}
111 0 0 59 $$ != $self->{'pid'} or 0 != $self->{'tid'}
125 0 0 1 $$ != $self->{'pid'} or 0 != $self->{'tid'}
137 0 0 11 $$ != $self->{'pid'} or 0 != $self->{'tid'}
150 0 0 2 $$ != $self->{'pid'} or 0 != $self->{'tid'}
178 0 0 4 $$ != $self->{'pid'} or 0 != $self->{'tid'}
261 11 0 634 $$ != $self->{'pid'} or 0 != $self->{'tid'}
279 69 27 1155 $type eq 'Test2::Event::Diag' || $type eq 'Test2::Event::Note'
282 988 0 263 $is_ok or not $no_fail and $e->increments_count
285 988 96 167 $is_ok or $no_fail
295 988 96 167 $is_ok or $no_fail
313 6 0 64 $self->{'pid'} != $$ or $self->{'tid'} != 0
330 83 8 21 $do_plan or defined $plan
91 4 17 $do_plan or defined $plan or $count
12 3 14 $do_plan or defined $plan or $count or $failed
342 1 0 94 $plan and $plan eq 'NO PLAN' or $do_plan and not $plan