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 34 0 26 $from->{'ipc'} and not $self->{'ipc'}
34 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 58 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 125 42 not $no_fail and $e->increments_count
341 88 6 1 $plan and $plan eq 'NO PLAN'
11 0 83 $do_plan and not $plan
381 174 12 2 not $count and $plan
186 0 2 not $count and $plan and $plan =~ /^SKIP$/
383 8 2 111 $count && $plan
65 111 10 $ended and not $count && $plan
386 65 0 111 $plan and $plan =~ /^\d+$/
409 107 2 1 $self->{'_plan'} and not $self->{'_plan'} =~ /^NO PLAN$/

or 2 conditions

line l !l condition
252 643 603 $self->{'ipc'} || (return $self->process($e))
311 70 73 $self->{'ipc'} || (return)
374 196 12 $self->{'_passing'} || (return 0)
421 32 8 $self->{'_plan'} || (return undef)
431 51 63 $self->{'ipc'} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
73 0 0 60 $self->{'_formatter'} or exists $params{'formatter'}
110 0 0 59 $$ != $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 631 $$ != $self->{'pid'} or 0 != $self->{'tid'}
278 69 27 1152 $type eq 'Test2::Event::Diag' || $type eq 'Test2::Event::Note'
281 985 0 263 $is_ok or not $no_fail and $e->increments_count
284 985 96 167 $is_ok or $no_fail
294 985 96 167 $is_ok or $no_fail
312 6 0 64 $self->{'pid'} != $$ or $self->{'tid'} != 0
329 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
341 1 0 94 $plan and $plan eq 'NO PLAN' or $do_plan and not $plan