Condition Coverage

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


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
75 33 0 26 $from->{'ipc'} and not $self->{'ipc'}
33 1 25 $from->{'ipc'} and not $self->{'ipc'} and not exists $params{'ipc'}
102 2 0 4 $$ == $self->{'pid'} && 0 == $self->{'tid'}
112 1 0 57 ref $sub and ref $sub eq 'CODE'
138 1 0 10 ref $sub and ref $sub eq 'CODE'
158 1 0 3 ref $sub and ref $sub eq 'CODE'
179 2 0 2 ref $sub and ref $sub eq 'CODE'
190 0 0 1 ref $sub and ref $sub eq 'CODE'
209 0 0 1 ref $sub and ref $sub eq 'CODE'
227 0 0 1 ref $sub and ref $sub eq 'CODE'
281 96 121 41 not $no_fail and $e->increments_count
341 84 6 1 $plan and $plan eq 'NO PLAN'
11 0 79 $do_plan and not $plan
381 169 12 2 not $count and $plan
181 0 2 not $count and $plan and $plan =~ /^SKIP$/
383 8 2 106 $count && $plan
65 106 10 $ended and not $count && $plan
386 65 0 106 $plan and $plan =~ /^\d+$/
409 103 2 1 $self->{'_plan'} and not $self->{'_plan'} =~ /^NO PLAN$/

or 2 conditions

line l !l condition
252 626 595 $self->{'ipc'} || (return $self->process($e))
311 69 70 $self->{'ipc'} || (return)
374 191 12 $self->{'_passing'} || (return 0)
421 31 8 $self->{'_plan'} || (return undef)
431 51 62 $self->{'ipc'} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
73 0 0 59 $self->{'_formatter'} or exists $params{'formatter'}
110 0 0 58 $$ != $self->{'pid'} or 0 != $self->{'tid'}
124 0 0 1 $$ != $self->{'pid'} or 0 != $self->{'tid'}
136 0 0 11 $$ != $self->{'pid'} or 0 != $self->{'tid'}
149 0 0 2 $$ != $self->{'pid'} or 0 != $self->{'tid'}
177 0 0 4 $$ != $self->{'pid'} or 0 != $self->{'tid'}
260 11 0 614 $$ != $self->{'pid'} or 0 != $self->{'tid'}
278 69 27 1127 $type eq 'Test2::Event::Diag' || $type eq 'Test2::Event::Note'
281 965 0 258 $is_ok or not $no_fail and $e->increments_count
284 965 96 162 $is_ok or $no_fail
294 965 96 162 $is_ok or $no_fail
312 6 0 63 $self->{'pid'} != $$ or $self->{'tid'} != 0
329 79 8 21 $do_plan or defined $plan
87 4 17 $do_plan or defined $plan or $count
12 3 14 $do_plan or defined $plan or $count or $failed
341 1 0 90 $plan and $plan eq 'NO PLAN' or $do_plan and not $plan