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

containertest

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWalker

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

FileWalker is a helper to find files in the current directory and its subdirectories. It uses git to check if a file is ignored by the .gitignore file. It also skips hidden files and directories.

func NewFileWalker

func NewFileWalker(fileName string, verbosity int, baseDir string) *FileWalker

func (*FileWalker) FindConfigFiles

func (w *FileWalker) FindConfigFiles() ([]string, error)

type Runner

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

func NewRunner

func NewRunner(config RunnerConfig) (*Runner, error)

func (*Runner) Cleanup

func (r *Runner) Cleanup()

func (*Runner) RunTests

func (r *Runner) RunTests() error

func (*Runner) Setup

func (r *Runner) Setup() error

type RunnerConfig

type RunnerConfig struct {
	TestDir       string   `yaml:"test-dir"`
	Dockerfile    string   `yaml:"dockerfile"`
	DockerRunArgs []string `yaml:"docker-run-args"`

	Verbosity   int    `yaml:"verbosity"`
	NoFastFail  bool   `yaml:"no-fast-fail"`
	NoParallel  bool   `yaml:"no-parallel"`
	Parallelism int    `yaml:"parallelism"`
	TestPattern string `yaml:"test-pattern"`
}

Jump to

Keyboard shortcuts

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