Condition Coverage

blib/lib/Test2/Formatter/TAP.pm
Criterion Covered Total %
condition 94 111 84.6


and 3 conditions

line !l l&&!r l&&r condition
69 0 1 2 $] ge '5.007003' and @_
121 1368 1444 46 $ENV{'HARNESS_ACTIVE'} and $hid == 1
2812 16 30 $ENV{'HARNESS_ACTIVE'} and $hid == 1 and $self->{'_last_fh'} != $io
1460 13 17 $ENV{'HARNESS_ACTIVE'} and $hid == 1 and $self->{'_last_fh'} != $io and $msg =~ /^#\s*Failed( \(TODO\))? test /
136 1726 413 1650 $type eq 'Test2::Event::Ok' and $e->{'pass'}
139 2847 0 13 $e->{'amnesty'} and @{$e->{'amnesty'};}
142 345 2487 2 defined $e->{'name'} and -1 != index($e->{'name'}, "\n") || -1 != index($e->{'name'}, '#')
145 0 1 2818 $num and not $self->{'no_numbers'}
169 2454 202 293 $f->{'plan'} and not $self->{'made_assertion'}
185 741 2006 202 $self->{'made_assertion'} and $f->{'plan'}
202 4 0 0 $f->{'amnesty'} && @{$f->{'amnesty'};}
249 0 39 1328 $num and not $self->{'no_numbers'}
253 1285 25 0 index($name, "\n") != -1 && (($name, @extra) = split(/\n\r?/, $name, -1))
1301 8 1 (index($name, '#') != -1 || substr($name, -1) eq '\\') && ($name =~ s/\\/\\\\/g, $name =~ s/#/\\#/g)
282 309 49 272 defined $directives{$tag} and length $directives{$tag}
288 1290 6 14 $is_skip && !$name
57 14 1296 defined $name and not $is_skip && !$name
291 1192 86 89 $f->{'parent'} and $f->{'parent'}{'buffered'}
348 0 0 19 $file and $line
351 19 1 3 $f->{'amnesty'} && @{$f->{'amnesty'};}
361 19 1 3 $f->{'amnesty'} && @{$f->{'amnesty'};}
369 9 1 3 $f->{'trace'}{'nested'} and not $f->{'trace'}{'buffered'}
372 2 1 7 defined $details and length $details
383 629 3 295 $_->{'debug'} && !($f->{'amnesty'} && @{$f->{'amnesty'};})
386 921 2 4 $table and $self->supports_tables

or 2 conditions

line l !l condition
26 1 0 $INC{'Term/Table.pm'} && $INC{'Term/Table/Util.pm'} || eval {
106 503 1455 $f->{'trace'}{'nested'} || 0
429 2 2 $f->{'trace'}{'nested'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
47 11 353 0 $self->{'handles'} ||= $self->_open_handles
98 2133 41 0 $f ||= $e->facet_data
111 2 0 1956 $\ or $,
136 1210 2310 1479 $type eq 'Test2::Event::Pass' or $type eq 'Test2::Event::Ok' and $e->{'pass'}
139 13 13 2834 $e->{'amnesty'} and @{$e->{'amnesty'};} or defined $e->{'todo'}
142 13 2 2474 -1 != index($e->{'name'}, "\n") || -1 != index($e->{'name'}, '#')
155 0 0 2819 $\ or $,
174 638 672 17 $f->{'assert'}{'no_debug'} or $f->{'assert'}{'pass'}
270 3 232 107 $directives{$tag} ||= $am->{'details'}
297 0 0 89 $ENV{'HARNESS_IS_VERBOSE'} or not $ENV{'HARNESS_ACTIVE'}