html

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package html renders a coverage report into a self-contained HTML page.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Title           string
	ThresholdLine   float64 // 0 = disabled; minimum acceptable line coverage %
	ThresholdBranch float64 // 0 = disabled; minimum acceptable branch coverage %
	ThresholdFunc   float64 // 0 = disabled; minimum acceptable function coverage %
	TestReportURL   string  // cross-link to test report page
	Delta           *delta.Delta
	BaselineLabel   string
}

Options controls optional rendering features.

type Renderer

type Renderer struct{}

Renderer produces a self-contained HTML coverage report.

func (Renderer) Name

func (Renderer) Name() string

Name returns the renderer name.

func (Renderer) Render

func (Renderer) Render(w io.Writer, rep *covmodel.CovReport, opts Options) error

Render writes a fully self-contained HTML coverage page to w.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL