Branch Coverage

blib/lib/Test/Stream/Formatter/TAP.pm
Criterion Covered Total %
branch 19 24 79.1


line true false branch
25 1 130 if (my $enc = delete $self->{'encoding'})
33 116 1 if (@_)
40 116 0 if ($enc =~ /^utf-?8$/i) { }
59 1 1736 if $self->{'no_diag'} and $e->isa('Test::Stream::Event::Diag')
60 1 1735 if $self->{'no_header'} and $e->isa('Test::Stream::Event::Plan')
62 2 1733 if $self->{'no_numbers'}
69 1 1734 if $nesting and $e->isa('Test::Stream::Event::Bail')
75 0 3422 unless $msg
76 0 3422 unless my $io = $handles->[$hid]
78 11 3411 if $nesting
86 0 128 unless open my $out, '>&STDOUT'
87 0 128 unless open my $err, '>&STDERR'