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 25 5 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 607 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)
285 1 13 if ($self->force_inline_js)
301 0 14 unless $self->template_processor->process($self->template, $params, \$html)
305 14 0 if $self->minify
327 4 66 if ($^O =~ /win32/i || $FAKE_WIN32_URIS and $uri =~ /^(?:(?:file)|(?:\w:)?\\)/) { }
333 64 6 if ($uri->scheme and $uri->scheme eq "file")
335 55 9 unless (file_name_is_absolute($path))
337 0 55 if (-e $path) { }
338 0 0 if $self->abs_file_paths
342 55 0 if ($new_path)
343 0 55 if ($^O =~ /win32/i or $FAKE_WIN32_URIS) { }
387 13 1 if ($r->{'total'}) { }
410 13 1 if (scalar @{$r->{'tests'};})
427 55 55 if (-e $target)
428 55 0 if $self->abs_file_paths
449 0 6 if $self->inline_css
462 0 1 if $self->inline_js
472 15 0 if ($scheme and $scheme eq 'file') { }
474 15 0 if (-e $path) { }
475 15 0 if (open my $fh, $path) { }
497 771 0 unless grep {/\n/;} @_
504 22 0 unless $self->verbose
510 645 561 if $self->really_quiet
516 397 210 if $self->quiet
522 0 771 if $self->silent
523 0 771 if (ref $_[0] and ref $_[0] eq 'SCALAR') { }
527 37 734 if $self->escape_output