htmlreact

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RiskSafe    riskLevel = "safe"
	RiskWarning riskLevel = "warning"
	RiskDanger  riskLevel = "danger"
)
View Source
const (
	StatusCovered      lineStatus = "covered"
	StatusUncovered    lineStatus = "uncovered"
	StatusNotCoverable lineStatus = "not-coverable"
	StatusPartial      lineStatus = "partial"
)

Variables

This section is empty.

Functions

func GenerateSummary

func GenerateSummary(outDir string, data summaryV1, logger Logger) error

GenerateSummary copies the embedded React dist and writes data.js. If logger is nil, logging is skipped.

func NewHtmlReactReportBuilder

func NewHtmlReactReportBuilder(outputDir string, logger *slog.Logger) reporter.ReportBuilder

Types

type HtmlReactReportBuilder

type HtmlReactReportBuilder struct {
	// contains filtered or unexported fields
}

func (*HtmlReactReportBuilder) CreateReport

func (b *HtmlReactReportBuilder) CreateReport(tree *model.SummaryTree) error

func (*HtmlReactReportBuilder) ReportType

func (b *HtmlReactReportBuilder) ReportType() string

type Logger

type Logger interface {
	Debugf(string, ...any)
	Infof(string, ...any)
	Errorf(string, ...any)
}

Jump to

Keyboard shortcuts

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