gotest

package
v0.0.0-...-54c1940 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeBenchmarks

func MergeBenchmarks(files []string) (map[string]Benchmark, error)

Types

type Benchmark

type Benchmark struct {
	Name string
	Ref  string
	Runs []BenchmarkRun
}

func (*Benchmark) ID

func (b *Benchmark) ID() string

func (*Benchmark) Update

func (b *Benchmark) Update(event testjson.TestEvent) error

type BenchmarkInfo

type BenchmarkInfo struct {
	OS           string
	Architecture string
	Package      string
	CPU          string
}

type BenchmarkRun

type BenchmarkRun struct {
	benchmark.Benchmark
	BenchmarkRunInfo
}

type BenchmarkRunInfo

type BenchmarkRunInfo struct {
	Test    string
	Run     int
	Ref     string
	Buildx  string
	Threads int
}

type ParseConfig

type ParseConfig struct {
	Stdout io.Reader
	Logger io.Writer
}

type ParseEntry

type ParseEntry interface {
	ID() string
	Update(event testjson.TestEvent) error
}

type ParseResult

type ParseResult struct {
	Tests         map[string]ParseEntry
	Benchmarks    map[string]ParseEntry
	BenchmarkInfo *BenchmarkInfo
}

func Parse

func Parse(config ParseConfig) (*ParseResult, *testjson.Execution, error)

type Result

type Result struct {
	Tests         map[string]Test
	Benchmarks    map[string]Benchmark
	BenchmarkInfo BenchmarkInfo
}

type Test

type Test struct {
	Name   string
	Ref    string
	Run    int
	Output string
}

func (*Test) ID

func (t *Test) ID() string

func (*Test) Update

func (t *Test) Update(event testjson.TestEvent) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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