step

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package step provides the definition of a test Step and a test step Builder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	LocalField string
	SrcField   *field.Field
}

A Binding is related to a specific step. It associates to a local field, the source field information needed in order to perform the binding.

type Builder

type Builder interface {
	// Build builds a new test step.
	// TODO: replace loader.TestStep with a dedicated type.
	Build(testStep *loader.TestStep) (Step, error)
}

Builder allows to build new test step.

type FieldBinding

type FieldBinding struct {
	LocalField string
	SrcName    string
	SrcField   string
}

A FieldBinding is related to a specific step. It associates to a local field, the source name and the source field name containing the value the local field should be bound to.

type Step

type Step interface {
	// Name returns the step name.
	Name() string
	// Run runs the step. If the step requires any binding to be performed, it must be done (by calling Bind), before
	// trying to run the step; otherwise, an error is returned.
	Run(ctx context.Context) error
	// Cleanup restores the environment to the state it was before running the step.
	Cleanup(ctx context.Context) error
	// Bind binds fields of the current step to values of other steps, as described by the provided bindings.
	Bind(bindings []*Binding) error
	// FieldBindings provides the list of field bindings.
	FieldBindings() []*FieldBinding
	field.Retriever
}

A Step represent a single step in a test.

Directories

Path Synopsis
Package builder provides an implementation of step.Builder.
Package builder provides an implementation of step.Builder.
Package syscall provides the definition of a Syscall test step and a syscall test step Builder.
Package syscall provides the definition of a Syscall test step and a syscall test step Builder.
base
Package base provides the definition of a generic syscall.Syscall test step.
Package base provides the definition of a generic syscall.Syscall test step.
builder
Package builder provides the implementation of a syscall.Builder.
Package builder provides the implementation of a syscall.Builder.
connect
Package connect provides the implementation of a connect system call test step.
Package connect provides the implementation of a connect system call test step.
dup
Package dup provides the implementation of a dup system call test step.
Package dup provides the implementation of a dup system call test step.
dup2
Package dup2 provides the implementation of a dup2 system call test step.
Package dup2 provides the implementation of a dup2 system call test step.
dup3
Package dup3 provides the implementation of a dup3 system call test step.
Package dup3 provides the implementation of a dup3 system call test step.
finitmodule
Package finitmodule provides the implementation of an finit_module system call test step.
Package finitmodule provides the implementation of an finit_module system call test step.
initmodule
Package initmodule provides the implementation of an init_module system call test step.
Package initmodule provides the implementation of an init_module system call test step.
kill
Package kill provides the implementation of a kill system call test step.
Package kill provides the implementation of a kill system call test step.
link
Package link provides the implementation of a link system call test step.
Package link provides the implementation of a link system call test step.
linkat
Package linkat provides the implementation of a linkat system call test step.
Package linkat provides the implementation of a linkat system call test step.
open
Package open provides the implementation of an open system call test step.
Package open provides the implementation of an open system call test step.
openat
Package openat provides the implementation of an openat system call test step.
Package openat provides the implementation of an openat system call test step.
openat2
Package openat2 provides the implementation of an openat2 system call test step.
Package openat2 provides the implementation of an openat2 system call test step.
read
Package read provides the implementation of a write system call test step.
Package read provides the implementation of a write system call test step.
sendto
Package sendto provides the implementation of a sendto system call test step.
Package sendto provides the implementation of a sendto system call test step.
socket
Package socket provides the implementation of a socket system call test step.
Package socket provides the implementation of a socket system call test step.
symlink
Package symlink provides the implementation of a symlink system call test step.
Package symlink provides the implementation of a symlink system call test step.
symlinkat
Package symlinkat provides the implementation of a symlinkat system call test step.
Package symlinkat provides the implementation of a symlinkat system call test step.
write
Package write provides the implementation of a write system call test step.
Package write provides the implementation of a write system call test step.

Jump to

Keyboard shortcuts

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