Branch Coverage

blib/lib/Test2/Formatter/TAP.pm
Criterion Covered Total %
branch 56 86 65.1


line true false branch
36 0 1 unless $type
37 0 1 if $CONVERTERS{$type}
38 0 1 unless $convert and ref $convert eq 'CODE' || $class->can($convert)
50 1 79 if (my $enc = delete $self->{'encoding'})
60 2 1 if (@_)
67 2 0 if ($enc =~ /^utf-?8$/i) { }
89 0 949 $self->{'no_numbers'} ? :
1 948 unless my(@tap) = $self->$converter($e, $self->{'no_numbers'} ? undef : $num)
96 0 948 if $\ or $,
100 0 1168 unless $msg
101 0 1168 unless my $io = $handles->[$hid]
103 3 1165 if $nesting
111 0 79 unless open my $out, '>&', 'STDOUT'
112 0 79 unless open my $err, '>&', 'STDERR'
131 0 227 unless my $converter = $CONVERTERS{ref $e}
133 0 227 if $self->{'no_numbers'}
148 12 999 unless $e->{'pass'}
150 1009 2 if defined $num
151 1001 10 if defined $name
152 5 1006 if $in_todo
153 3 1008 if defined $todo and length $todo
168 2 1 unless $e->{'pass'}
170 3 0 if defined $num
171 3 0 if $name
172 1 2 if (defined $todo) { }
178 3 0 if defined $reason and length $reason
209 0 1 if $e->nested
233 3 34 unless $e->buffered
238 9 25 if ($ENV{'HARNESS_IS_VERBOSE'})
250 160 35 if $_->increments_count
270 2 88 if $directive and $directive eq 'NO PLAN'
273 4 84 if $reason
276 5 83 if ($directive)
278 4 1 if defined $reason
287 0 12 if $e->no_display
291 0 12 if (my($max, $directive, $reason) = $e->sets_plan)
293 0 0 if $directive
294 0 0 if defined $reason
298 0 12 if ($e->increments_count) { }
300 0 0 if $e->causes_fail
302 0 0 if defined $num
303 0 0 if $e->summary
308 0 12 $e->causes_fail || $e->diagnostics ? :