suites

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark added in v0.1.12

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

func NewBenchmark added in v0.1.12

func NewBenchmark(n int, ss Suites) *Benchmark

func (*Benchmark) Range added in v0.1.12

func (b *Benchmark) Range(filter *regexp.Regexp, exec func(suiteName string, suite Suite) error) error

type BenchmarkResults added in v0.1.12

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

type Case

type Case struct {
	Message  proto.Message
	Expected results.Result
}

type Suite

type Suite map[string]Case

func (Suite) ProcessResults

func (s Suite) ProcessResults(
	suiteName string,
	filter *regexp.Regexp,
	resp *harness.TestConformanceResponse,
	options *harness.ResultOptions,
	skippedCases []string,
) *results.SuiteResults

func (Suite) Range

func (s Suite) Range(filter *regexp.Regexp, fn func(caseName string, testCase Case) error) error

func (Suite) ToRequestProto

func (s Suite) ToRequestProto(filter *regexp.Regexp) (*harness.TestConformanceRequest, error)

type Suites

type Suites map[string]Suite

func (Suites) Benchmark added in v0.1.12

func (ss Suites) Benchmark(n int) *Benchmark

func (Suites) Range

func (ss Suites) Range(filter *regexp.Regexp, fn func(suiteName string, suite Suite) error) error

Jump to

Keyboard shortcuts

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