Condition Coverage

blib/lib/Test2/Harness/Renderer/EventStream.pm
Criterion Covered Total %
condition 81 99 81.8


and 3 conditions

line !l l&&!r l&&r condition
86 98 2 0 $is_term || $self->{'color'} || $self->{'watch'} and $^O eq 'MSWin32'
244 19186 2 603 $event->isa('Test2::Event::ProcessStart') and not $self->{'verbose'}
315 0 14 4 $plan and $plan->directive
14 0 4 $plan and $plan->directive and $plan->directive eq 'SKIP'
357 22 0 2 $event->can('reason') and defined $event->reason
358 4 16 2 $event->can('todo') and defined $event->todo
361 14 6 0 not $event->pass and $event->effective_pass
378 0 2 8 defined $event->summary and $event->summary =~ /\S/
409 3514 6 2 $event->isa('Test2::Event::Subtest') and $n < 0
428 14 2 3504 $s == $j and $mark ne '|'
552 12159 53 53 ($todo[0]->in_subtest || '') ne ($e->in_subtest || '') and not $e->subtest_id
567 2037 4 0 @out and $self->{'verbose'}

or 2 conditions

line l !l condition
50 0 46 $SIG{$sig} || sub { $SIG{$sig} = 'DEFAULT'; kill $sig, $$; }
97 34 0 eval { do { Term::ANSIColor::color($colors->{$_}) } } || ''
6 94 $self->{'colors'} ||= {map({$_, eval { do { Term::ANSIColor::color($colors->{$_}) } } || '';} grep({$colors->{$_};} keys %$colors, 'reset'))}
98 2 98 $self->{'graph_colors'} ||= [map({'' unless eval { do { Term::ANSIColor::color($_) } };} grep({$_;} @$graph_colors))]
123 16 0 $$graph[$jobs->{$c}{'slot'} % @$graph] || ''
126 12 12248 $$colors{lc $c} || ''
129 20 14356 $colors->{'reset'} || ''
218 14273 4973 $event->nested || 0
311 63 1994 $event->nested || 0
407 2057 1465 $event->nested || 0
552 12265 0 $todo[0]->in_subtest || ''
12265 0 $e->in_subtest || ''
564 53 1988 $st->nested || 0
596 28494 4941 $_->nested || 0
611 28494 4941 $_->nested || 0

or 3 conditions

line l !l&&r !l&&!r condition
71 16 84 0 $self->{'out_std'} ||= do { die "Can't dup STDOUT: $!" unless open my $out, '>&', 'STDOUT'; my $old = select($out); $| = 1; select $old; $out }
86 2 0 98 $is_term || $self->{'color'} || $self->{'watch'}
208 19184 603 0 $jobs->{$j} ||= $self->init_job($j)
312 14 4 2039 $self->{'verbose'} or $n < 0
341 4 4 13265 $event->isa('Test2::Event::UnknownStdout') or $event->isa('Test2::Event::UnknownStderr')
351 44 88 13133 $event->isa('Test2::Event::UnexpectedProcessExit') or $event->isa('Test2::Event::TimeoutReset')
375 12 2 6 $self->{'verbose'} or $event->diagnostics
423 3518 2 10 $jobs->{$s}{'counter'} > 1 or $j == $s
552 1988 0 12265 not @todo or ($todo[0]->in_subtest || '') ne ($e->in_subtest || '') and not $e->subtest_id
591 2041 601 0 $nested or grep {$_->isa('Test2::Event::ProcessStart');} @{$events;}
606 0 2620 22 $plans[0] == $events->[0] or $plans[0] == $events->[-1]