Documentation
¶
Overview ¶
Package base provides the definition of a generic syscall.Syscall test step.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option for configuring a Syscall.
func WithDefaultedArgs ¶
WithDefaultedArgs allows to specify the list of defaulted arguments.
func WithMutuallyExclusiveArgs ¶
WithMutuallyExclusiveArgs puts a constraint on the provided arguments, mandating the user to specify a value for at most one of them. This option can be provided multiple times to enforce mutually-exclusive-arguments constraints upon different arguments list.
func WithOneRequiredArg ¶
WithOneRequiredArg puts a constraint on the provided arguments, mandating the user to specify a value for at least one of them. This option can be provided multiple times to enforce one-required-argument constraints upon different arguments list.
func WithRequiredTogetherArgs ¶
WithRequiredTogetherArgs puts a constraint on the provided arguments, mandating the user to specify a value for each of them if at least a value for one of them is specified. This option can be provided multiple times to enforce required-together-arguments constraints upon different arguments list.
type Syscall ¶
type Syscall struct {
// contains filtered or unexported fields
}
Syscall provides a common implementation layer for system call test steps.
func New ¶
func New(stepName string, rawArgs map[string]any, fieldBindings []*step.FieldBinding, argsContainer, bindOnlyArgsContainer, retValueContainer reflect.Value, options ...Option) (*Syscall, error)
New creates a new system call test step common implementation layer.
func (*Syscall) CheckUnboundArgField ¶
CheckUnboundArgField verifies that all argument fields are bound and returns an error in case of any unbound one.
func (*Syscall) FieldBindings ¶
func (s *Syscall) FieldBindings() []*step.FieldBinding
FieldBindings implements step.Step.FieldBindings method.