line |
true |
false |
branch |
53
|
0 |
0 |
if -t STDOUT |
54
|
0 |
0 |
if -t STDERR |
61
|
0 |
23 |
if -t STDOUT |
62
|
0 |
23 |
if -t STDERR |
72
|
0 |
84 |
unless open my $out, '>&', 'STDOUT' |
84
|
0 |
46 |
$is_term ? : |
|
46 |
54 |
unless defined $self->{'color'} |
85
|
0 |
96 |
$is_term ? : |
|
96 |
4 |
unless defined $self->{'watch'} |
86
|
0 |
100 |
if ($is_term || $self->{'color'} || $self->{'watch'} and $^O eq 'MSWin32') |
87
|
0 |
0 |
if eval {
do {
require Win32::Console::ANSI
}
} |
92
|
2 |
98 |
$self->{'color'} ? : |
|
0 |
100 |
$self->{'color'} > 1 ? : |
95
|
2 |
98 |
$self->{'color'} ? : |
98
|
0 |
16 |
unless eval {
do {
Term::ANSIColor::color($_)
}
} |
109
|
2 |
916 |
if ($self->{'clear'}) |
115
|
8730 |
14432 |
unless (ref $i) |
121
|
14376 |
56 |
if @$i < 3 |
122
|
2172 |
12260 |
if ($c =~ /^\d+$/) { } |
123
|
16 |
2156 |
if @$graph |
129
|
14376 |
56 |
if $r |
145
|
323 |
0 |
if ($enc =~ /^utf-?8$/i) { } |
159
|
2 |
24 |
if (@fail) { } |
184
|
611 |
2 |
unless defined $slots->[$s] |
185
|
611 |
2 |
if defined $slot |
211
|
323 |
19464 |
if $event->isa('Test2::Event::Encoding') |
220
|
16 |
19230 |
if $n < 0 |
222
|
4973 |
14257 |
if ($n == 0) |
223
|
2971 |
2002 |
unless $event->subtest_id |
224
|
1994 |
8 |
unless $event->in_subtest |
227
|
8 |
14257 |
unless $event->in_subtest |
228
|
8 |
14249 |
if $self->{'watch'} |
244
|
603 |
19188 |
if ($event->isa('Test2::Event::ProcessStart') and not $self->{'verbose'}) { } |
249
|
862 |
18326 |
if @to_print |
254
|
603 |
19188 |
if $is_end |
262
|
14241 |
4949 |
unless my $meth = $self->pick_renderer($event) |
263
|
4085 |
864 |
unless my(@to_print) = $self->$meth($j, $event) |
264
|
605 |
259 |
$job->{'start'} ? : |
266
|
259 |
605 |
unless $is_end |
268
|
603 |
2 |
unless my(@errors) = $self->_plan_errors($event->result->events, 0) |
283
|
19787 |
4 |
unless $self->{'watch'} |
284
|
2 |
2 |
if $self->{'verbose'} |
298
|
4 |
21364 |
if $event->no_display |
300
|
1206 |
20158 |
if $event->isa('Test2::Event::ProcessStart') |
303
|
605 |
19553 |
if ($event->isa('Test2::Event::ParserSelect')) |
304
|
603 |
2 |
unless $self->{'verbose'} |
308
|
2061 |
17492 |
if ($event->isa('Test2::Event::Subtest')) |
309
|
4 |
2057 |
if $event->causes_fail |
312
|
2039 |
18 |
unless $self->{'verbose'} or $n < 0 |
315
|
4 |
14 |
if ($plan and $plan->directive and $plan->directive eq 'SKIP') |
322
|
1202 |
16290 |
if ($event->isa('Test2::Event::ProcessFinish')) |
323
|
76 |
1126 |
unless $event->result->ran_tests |
324
|
1126 |
0 |
if $event->result->passed |
328
|
2692 |
13598 |
if ($event->isa('Test2::Event::Plan')) |
329
|
80 |
2612 |
if ($event->directive eq 'SKIP') |
332
|
2602 |
10 |
unless $self->{'verbose'} |
336
|
325 |
13273 |
if ($event->isa('Test2::Event::Encoding')) |
337
|
323 |
2 |
unless $self->{'verbose'} |
341
|
8 |
13265 |
if ($event->isa('Test2::Event::UnknownStdout') or $event->isa('Test2::Event::UnknownStderr')) |
342
|
0 |
8 |
unless defined $event->output |
344
|
4 |
4 |
if $event->isa('Test2::Event::UnknownStderr') |
345
|
0 |
4 |
if $event->diagnostics |
347
|
2 |
2 |
unless $self->{'verbose'} |
351
|
132 |
13133 |
if ($event->isa('Test2::Event::UnexpectedProcessExit') or $event->isa('Test2::Event::TimeoutReset')) |
355
|
12403 |
730 |
if ($event->increments_count) |
356
|
24 |
12379 |
if ($self->{'verbose'}) |
357
|
2 |
22 |
if $event->can('reason') and defined $event->reason |
358
|
2 |
20 |
if $event->can('todo') and defined $event->todo |
361
|
0 |
20 |
if not $event->pass and $event->effective_pass |
362
|
16 |
4 |
unless $event->causes_fail |
365
|
8 |
12375 |
if $event->causes_fail |
369
|
710 |
20 |
if ($event->can('message')) |
370
|
306 |
404 |
if $event->diagnostics |
371
|
402 |
2 |
unless $self->{'verbose'} |
375
|
6 |
14 |
unless $self->{'verbose'} or $event->diagnostics |
376
|
4 |
10 |
if $event->isa('Test2::Event::ParseError') |
378
|
2 |
8 |
unless defined $event->summary and $event->summary =~ /\S/ |
389
|
18328 |
1477 |
unless $val |
403
|
2 |
3522 |
if (not $event) { } |
408
|
603 |
2919 |
if $event->isa('Test2::Event::ProcessStart') |
409
|
2 |
3520 |
if $event->isa('Test2::Event::Subtest') and $n < 0 |
410
|
601 |
2921 |
if $event->isa('Test2::Event::ProcessFinish') |
418
|
12 |
3530 |
unless (defined $s) |
423
|
10 |
3520 |
unless ($jobs->{$s}{'counter'} > 1 or $j == $s) |
428
|
3504 |
16 |
if ($s == $j and $mark ne '|') { } |
429
|
2298 |
1206 |
$mark eq '+' ? : |
441
|
5886 |
2950 |
ref $_ ? : |
454
|
3317 |
0 |
if defined $_ |
455
|
0 |
1477 |
unless @lines |
461
|
51 |
1426 |
if (grep {$term_size <= $len + length($_);} @lines) { } |
483
|
18328 |
1475 |
unless my(@tag) = $self->tag($event) |
491
|
51 |
1424 |
if @$blob |
501
|
2 |
4 |
unless my(@tag) = $self->tag($event) |
509
|
2 |
2 |
if @$blob |
519
|
2 |
4 |
unless my(@tag) = $self->tag($event) |
541
|
53 |
14200 |
if ($e->subtest_id) { } |
552
|
2041 |
12212 |
if (not @todo or ($todo[0]->in_subtest || '') ne ($e->in_subtest || '') and not $e->subtest_id) { } |
557
|
2041 |
0 |
if (my $st = pop @stack) |
567
|
4 |
0 |
if (@out and $self->{'verbose'}) |
591
|
0 |
2642 |
unless ($nested or grep {$_->isa('Test2::Event::ProcessStart');} @{$events;}) |
596
|
19194 |
14241 |
if ($_->nested || 0) == $nested |
598
|
0 |
2642 |
unless (@plans) |
603
|
0 |
2642 |
if @plans > 1 |
606
|
22 |
2620 |
unless $plans[0] == $events->[0] or $plans[0] == $events->[-1] |
611
|
19194 |
14241 |
if ($_->nested || 0) == $nested |
612
|
2642 |
0 |
if $max == $total |