Condition Coverage

blib/lib/Test2/Formatter/TAP.pm
Criterion Covered Total %
condition 90 111 81.0


and 2 conditions

line l !l condition
253 1296 25 0 index($name, "\n") != -1 && (($name, @extra) = split(/\n\r?/, $name, -1))
1312 8 1 (index($name, '#') != -1 || substr($name, -1) eq '\\') && ($name =~ s/\\/\\\\/g, $name =~ s/#/\\#/g)

and 3 conditions

line !l l&&!r l&&r condition
69 0 1 2 $] ge '5.007003' and @_
121 1368 1450 43 $ENV{'HARNESS_ACTIVE'} and $hid == 1
2818 16 27 $ENV{'HARNESS_ACTIVE'} and $hid == 1 and $self->{'_last_fh'} != $io
1466 10 17 $ENV{'HARNESS_ACTIVE'} and $hid == 1 and $self->{'_last_fh'} != $io and $msg =~ /^#\s*Failed( \(TODO\))? test /
136 1736 413 1636 $type eq 'Test2::Event::Ok' and $e->{'pass'}
139 2833 0 13 $e->{'amnesty'} and @{$e->{'amnesty'};}
142 345 2473 2 defined $e->{'name'} and -1 != index($e->{'name'}, "\n") || -1 != index($e->{'name'}, '#')
145 0 1 2804 $num and not $self->{'no_numbers'}
169 2462 201 293 $f->{'plan'} and not $self->{'made_assertion'}
185 738 2017 201 $self->{'made_assertion'} and $f->{'plan'}
202 4 0 0 $f->{'amnesty'} && @{$f->{'amnesty'};}
249 0 39 1339 $num and not $self->{'no_numbers'}
282 309 49 286 defined $directives{$tag} and length $directives{$tag}
288 1287 6 28 $is_skip && !$name
57 28 1293 defined $name and not $is_skip && !$name
291 1204 86 88 $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 626 3 292 $_->{'debug'} && !($f->{'amnesty'} && @{$f->{'amnesty'};})
386 921 0 0 $table and $self->supports_tables

or 2 conditions

line l !l condition
26 0 1 $INC{'Term/Table.pm'} && $INC{'Term/Table/Util.pm'} || eval { do { require Term::Table; require Term::Table::Util; 1 } } || 0
106 502 1466 $f->{'trace'}{'nested'} || 0
429 0 0 $f->{'trace'}{'nested'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
47 10 353 0 $self->{'handles'} ||= $self->_open_handles
98 2143 41 0 $f ||= $e->facet_data
111 2 0 1966 $\ or $,
136 1210 2309 1476 $type eq 'Test2::Event::Pass' or $type eq 'Test2::Event::Ok' and $e->{'pass'}
139 13 13 2820 $e->{'amnesty'} and @{$e->{'amnesty'};} or defined $e->{'todo'}
142 13 2 2460 -1 != index($e->{'name'}, "\n") || -1 != index($e->{'name'}, '#')
155 0 0 2805 $\ or $,
174 651 670 17 $f->{'assert'}{'no_debug'} or $f->{'assert'}{'pass'}
270 3 246 107 $directives{$tag} ||= $am->{'details'}
297 0 0 88 $ENV{'HARNESS_IS_VERBOSE'} or not $ENV{'HARNESS_ACTIVE'}