Help us shape the future of Go! Take the 2026 Go Developer Survey

report

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReport

func NewReport() *report

func ParseJSONResult

func ParseJSONResult(baseResult *ReportElement) []byte

ParseJSONResult Print the result to the console

Types

type ReportElement

type ReportElement struct {
	Failures      int            `json:"failures"`
	TestCount     int            `json:"test_count,omitempty"`
	ExecutionTime time.Duration  `json:"execution_time_ns"`
	StartTime     time.Time      `json:"-"`
	Name          string         `json:"name,omitempty"`
	LogStorage    []string       `json:"log,omitempty"`
	SubTests      reportElements `json:"sub_tests,omitempty"`
	Parent        *ReportElement `json:"-"`
	NoLogTime     bool           `json:"-"`
	Failure       string         `json:"failure,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportElement) Leave

func (r *ReportElement) Leave(result bool)

func (*ReportElement) NewChild

func (r *ReportElement) NewChild(name string) (newElem *ReportElement)

NewChild create new report element and return its reference

func (*ReportElement) SaveToReportLog

func (r *ReportElement) SaveToReportLog(v string)

func (*ReportElement) SaveToReportLogF

func (r *ReportElement) SaveToReportLogF(v string, args ...any)

func (*ReportElement) SetName

func (r *ReportElement) SetName(name string)

Jump to

Keyboard shortcuts

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