k3r

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknown        = fmt.Errorf("unknown error")
	ErrNotImplemented = fmt.Errorf("not implemented")
	ErrTimeout        = fmt.Errorf("timeout")
	ErrInvalidMessage = fmt.Errorf("invalid message")

	ErrNoSuch        = fmt.Errorf("no such thing")
	ErrNoSuchModule  = fmt.Errorf("no such module")
	ErrNoSuchTest    = fmt.Errorf("no such test case")
	ErrNoSuchControl = fmt.Errorf("no such control")

	ErrRuntimeNotReady = fmt.Errorf("runtime not ready")
	ErrModuleNotReady  = fmt.Errorf("module not ready")
	ErrTestNotReady    = fmt.Errorf("test case not ready")
	ErrControlNotReady = fmt.Errorf("control not ready")
	ErrNotQualified    = fmt.Errorf("id not fully qualified")
)

Functions

func Factory

func Factory(jobs <-chan *control.Job) control.RunnerFactory

Types

type Error

type Error struct {
	Err error
}

func (*Error) Error

func (r *Error) Error() string

func (*Error) Unwrap

func (r *Error) Unwrap() error

type Runner

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

Runner executes tests using k3r.

func NewRunner

func NewRunner(jobs <-chan *control.Job) *Runner

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) <-chan control.Event

type Test

type Test struct {
	*control.Job

	// Path to the T3XF file.
	T3XF string

	// Path to the K3 runtime
	Runtime string

	// LogFile is the path to the log file.
	LogFile string
}

A Test is a test case instance.

func NewTest

func NewTest(t3xf string, job *control.Job) *Test

NewTest creates a new test instance from job ready to run.

func (*Test) Run

func (t *Test) Run(ctx context.Context) <-chan control.Event

Jump to

Keyboard shortcuts

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