line |
true |
false |
branch |
49
|
4 |
724 |
if $$UUID_VIA |
51
|
727 |
1 |
unless defined $self->{'nested'} |
52
|
607 |
121 |
unless defined $self->{'buffered'} |
58
|
52 |
676 |
if (my $formatter = delete $self->{'formatter'}) |
62
|
15 |
713 |
if (my $ipc = $self->{'ipc'}) |
73
|
54 |
1 |
if $self->{'pid'} == $$ and $self->{'tid'} == 0 |
79
|
0 |
1 |
if (my $ipc = $self->{'ipc'}) |
104
|
290 |
1 |
unless $self->{'_formatter'} or exists $params{'formatter'} |
106
|
24 |
1 |
if ($from->{'ipc'} and not $self->{'ipc'} and not exists $params{'ipc'}) |
112
|
53 |
238 |
if (my $ls = $from->{'_listeners'}) |
116
|
173 |
118 |
if (my $pfs = $from->{'_pre_filters'}) |
120
|
12 |
279 |
if (my $fs = $from->{'_filters'}) |
129
|
576 |
2907 |
if @_ |
145
|
0 |
342 |
if $$ != $self->{'pid'} or 0 != $self->{'tid'} |
147
|
1 |
341 |
unless ref $sub and ref $sub eq 'CODE' |
159
|
0 |
1 |
if $$ != $self->{'pid'} or 0 != $self->{'tid'} |
171
|
0 |
11 |
if $$ != $self->{'pid'} or 0 != $self->{'tid'} |
173
|
1 |
10 |
unless ref $sub and ref $sub eq 'CODE' |
184
|
0 |
2 |
if $$ != $self->{'pid'} or 0 != $self->{'tid'} |
193
|
1 |
481 |
unless ref $sub and ref $sub eq 'CODE' |
212
|
0 |
4 |
if $$ != $self->{'pid'} or 0 != $self->{'tid'} |
214
|
2 |
2 |
unless ref $sub and ref $sub eq 'CODE' |
225
|
0 |
1 |
unless ref $sub and ref $sub eq 'CODE' |
244
|
0 |
1 |
unless ref $sub and ref $sub eq 'CODE' |
262
|
0 |
1 |
unless ref $sub and ref $sub eq 'CODE' |
293
|
692 |
5323 |
$self->{'ipc'} ? : |
297
|
43 |
5972 |
if $$UUID_VIA |
299
|
3798 |
2217 |
if ($self->{'_pre_filters'}) |
302
|
3 |
5276 |
unless $e |
308
|
1 |
691 |
if ($e->global) |
314
|
10 |
681 |
if $$ != $self->{'pid'} or 0 != $self->{'tid'} |
323
|
18 |
6052 |
if ($self->{'_filters'}) |
326
|
9 |
8 |
unless $e |
332
|
3557 |
424 |
if ($type eq 'Test2::Event::Pass' or $type eq 'Test2::Event::Ok' and $e->{'pass'}) |
334
|
2841 |
716 |
if $self->{'_formatter'} |
336
|
824 |
2733 |
if ($self->{'_listeners'}) |
346
|
540 |
1964 |
if $f->{'assert'} and not $f->{'assert'}{'pass'} |
347
|
4 |
2500 |
if $f->{'errors'} and grep {$_->{'fail'};} @{$$f{'errors'};} |
348
|
371 |
2133 |
if $f->{'amnesty'} |
350
|
713 |
1791 |
if $f->{'assert'} |
351
|
274 |
2 |
if $fail and $f->{'assert'} |
352
|
276 |
2228 |
if $fail |
354
|
782 |
1722 |
$f->{'control'} ? : |
357
|
549 |
1955 |
if (my $plan = $f->{'plan'}) |
358
|
24 |
525 |
if ($plan->{'skip'}) { } |
|
1 |
524 |
elsif ($plan->{'none'}) { } |
371
|
0 |
782 |
if $f->{'control'} and $f->{'control'}{'has_callback'} |
373
|
2187 |
317 |
if $self->{'_formatter'} |
375
|
772 |
1732 |
if ($self->{'_listeners'}) |
379
|
11 |
2296 |
if ($f->{'control'} and $f->{'control'}{'halt'}) |
384
|
35 |
2469 |
if (defined $code) |
385
|
23 |
12 |
if $self->{'_formatter'} |
402
|
7 |
737 |
if $self->{'pid'} != $$ or $self->{'tid'} != 0 |
420
|
12 |
7 |
unless ($active or $do_plan or defined $plan or $count or $failed) |
421
|
12 |
0 |
if $self->{'_formatter'} |
425
|
453 |
3 |
unless ($self->{'ended'}) |
426
|
2 |
451 |
if ($self->{'_follow_ups'}) |
435
|
312 |
141 |
if ($plan and $plan eq 'NO PLAN' or $do_plan and not $plan) |
447
|
3 |
453 |
if ($self->{'ended'}) |
461
|
328 |
125 |
if $self->{'_formatter'} |
469
|
268 |
1928 |
if @_ |
472
|
425 |
1771 |
unless my $pass = $self->{'_passing'} |
473
|
7 |
1764 |
if $self->{'failed'} |
479
|
41 |
595 |
if not $count and $plan and $plan =~ /^SKIP$/ |
481
|
29 |
1694 |
if $ended and not $count && $plan |
484
|
146 |
1548 |
unless $plan and $plan =~ /^\d+$/ |
486
|
870 |
678 |
if ($ended) { } |
487
|
3 |
867 |
if $count != $plan |
490
|
1 |
677 |
if $count > $plan |
499
|
1385 |
581 |
unless @_ |
503
|
0 |
581 |
unless defined $plan |
507
|
1 |
580 |
if $self->{'_plan'} and not $self->{'_plan'} =~ /^NO PLAN$/ |
509
|
1 |
579 |
unless $plan =~ /^(\d+|NO PLAN|SKIP)$/ |
518
|
0 |
123 |
unless $self->{'ended'} |
521
|
0 |
114 |
unless $plan =~ /^\d+$/ |
523
|
113 |
1 |
if $plan == $self->{'count'} |
530
|
1 |
50 |
unless $$ == $self->{'pid'} |
531
|
0 |
50 |
unless 0 == $self->{'tid'} |