Branch Coverage

lib/TAP/Formatter/HTML.pm
Criterion Covered Total %
branch 62 82 75.6


line true false branch
107 0 16 unless my $stdout_fh = 'IO::File'->new_from_fd(fileno STDOUT, 'w')
133 24 4 if $self->can($key)
144 3 13 if (my $file = $ENV{'TAP_FORMATTER_HTML_OUTFILE'})
149 3 13 if (defined $force_css)
154 1 15 if (defined $force_js)
158 2 14 if (my $uris = $ENV{'TAP_FORMATTER_HTML_CSS_URIS'})
163 2 14 if (my $uris = $ENV{'TAP_FORMATTER_HTML_JS_URIS'})
168 1 15 if (my $file = $ENV{'TAP_FORMATTER_HTML_TEMPLATE'})
189 0 3 unless my $fh = 'IO::File'->new($file, 'w')
205 0 22 if (@_)
212 1 606 if (@_)
219 2 1206 if (@_)
226 8 785 if (@_)
269 11 3 if (not $self->silent or $self->output_fh->fileno != fileno STDOUT)
281 6 8 if $self->force_inline_css
282 1 13 if $self->force_inline_js
295 0 14 unless $self->template_processor->process($self->template, $params, \$html)
299 14 0 if $self->minify
321 4 66 if ($^O =~ /win32/i || $FAKE_WIN32_URIS and $uri =~ /^(?:(?:file)|(?:\w:)?\\)/) { }
327 64 6 if ($uri->scheme and $uri->scheme eq 'file')
329 55 9 unless (file_name_is_absolute($path))
331 0 55 if (-e $path) { }
332 0 0 if $self->abs_file_paths
336 55 0 if ($new_path)
337 0 55 if ($^O =~ /win32/i or $FAKE_WIN32_URIS) { }
382 13 1 if ($$r{'total'}) { }
405 13 1 if (scalar @{$$r{'tests'};})
422 55 55 if (-e $target)
423 55 0 if $self->abs_file_paths
444 0 6 if $self->inline_css
457 0 1 if $self->inline_js
467 15 0 if ($scheme and $scheme eq 'file') { }
469 15 0 if (-e $path) { }
470 15 0 if (open my $fh, $path) { }
492 771 0 unless grep {/\n/;} @_
499 22 0 unless $self->verbose
505 645 561 if $self->really_quiet
511 396 210 if $self->quiet
517 0 771 if $self->silent
518 0 771 if (ref $_[0] and ref $_[0] eq 'SCALAR') { }
522 37 734 if $self->escape_output