Documentation ¶
Index ¶
- func NewRegistry(dir string) (url string, cl func() error, err error)
- func OfficialImages(names ...string) map[string]string
- func Register(w Worker)
- func ReportAlloc(b *testing.B, value int64)
- func ReportMetric(b *testing.B, value float64, unit MetricUnit)
- func ReportMetricDuration(b *testing.B, value time.Duration)
- func Run(tb testing.TB, runners []Runner, opt ...TestOpt)
- func RunTest(tb testing.TB, testFunc func(tb testing.TB, sb Sandbox))
- type Backend
- type BackendConfig
- type Bench
- type ConfigUpdater
- type MetricUnit
- type MultiCloser
- type Ref
- type Runner
- type Sandbox
- type Test
- type TestConfig
- type TestConfigBenchmark
- type TestConfigDefaults
- type TestConfigMetric
- type TestConfigRun
- type TestOpt
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OfficialImages ¶
func ReportAlloc ¶
func ReportMetric ¶
func ReportMetric(b *testing.B, value float64, unit MetricUnit)
Types ¶
type Backend ¶
type Backend interface { Address() string DebugAddress() string ExtraEnv() []string BuildxBin() string BuildxConfigDir() string BuilderName() string }
Backend describes a testing backend.
type BackendConfig ¶
type BackendConfig struct { Logs map[string]*bytes.Buffer DaemonConfig []ConfigUpdater BuildxBin string }
BackendConfig is used to configure backends created by a worker.
type ConfigUpdater ¶
type MetricUnit ¶
type MetricUnit string
const ( MetricAlloc MetricUnit = "alloc" MetricBytes MetricUnit = "bytes" MetricDuration MetricUnit = "duration" )
type MultiCloser ¶
type MultiCloser struct {
// contains filtered or unexported fields
}
func (*MultiCloser) Append ¶
func (mc *MultiCloser) Append(f func() error)
func (*MultiCloser) F ¶
func (mc *MultiCloser) F() func() error
type TestConfig ¶
type TestConfig struct { Defaults TestConfigDefaults `yaml:"defaults"` Runs map[string]TestConfigRun `yaml:"runs"` }
func LoadTestConfig ¶
func LoadTestConfig(f string) (*TestConfig, error)
func (*TestConfig) BenchmarkConfig ¶
func (t *TestConfig) BenchmarkConfig(name string) (*TestConfigBenchmark, error)
type TestConfigBenchmark ¶
type TestConfigBenchmark struct { Description string `yaml:"description"` Scope string `yaml:"scope,omitempty" json:",omitempty"` Count int `yaml:"count,omitempty" json:",omitempty"` Benchtime string `yaml:"benchtime,omitempty" json:",omitempty"` Metrics map[string]TestConfigMetric `yaml:"metrics"` }
type TestConfigDefaults ¶
type TestConfigMetric ¶
type TestConfigRun ¶
type TestConfigRun map[string]TestConfigBenchmark
type TestOpt ¶
type TestOpt func(*testConf)
TestOpt is an option that can be used to configure a set of tests.
func WithMatrix ¶
func WithMirroredImages ¶
Click to show internal directories.
Click to hide internal directories.