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

testscript

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanCheckType

func CanCheckType(field *matter.Field) bool

Types

type CallCommand

type CallCommand struct {
	Cluster   *matter.Cluster
	Command   *matter.Command
	Arguments []*CommandArgument

	Variable string

	Validations []TestAction
	// contains filtered or unexported fields
}

type CheckAnyOfConstraint

type CheckAnyOfConstraint struct {
	Values any
	// contains filtered or unexported fields
}

type CheckListEntries

type CheckListEntries struct {
	Validations []TestAction
	// contains filtered or unexported fields
}

type CheckMaxConstraint

type CheckMaxConstraint struct {
	Constraint *constraint.MaxConstraint
	// contains filtered or unexported fields
}

type CheckMinConstraint

type CheckMinConstraint struct {
	Constraint *constraint.MinConstraint
	// contains filtered or unexported fields
}

type CheckNotValueConstraint

type CheckNotValueConstraint struct {
	Value any
	// contains filtered or unexported fields
}

type CheckRangeConstraint

type CheckRangeConstraint struct {
	Constraint *constraint.RangeConstraint
	// contains filtered or unexported fields
}

type CheckStruct

type CheckStruct struct {
	Struct *matter.Struct

	Fields []*CheckStructField
	// contains filtered or unexported fields
}

type CheckStructField

type CheckStructField struct {
	Field *matter.Field

	Validations []TestAction
	// contains filtered or unexported fields
}

type CheckType

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

type CheckValueConstraint

type CheckValueConstraint struct {
	Value any
	// contains filtered or unexported fields
}

type CommandArgument

type CommandArgument struct {
	Field *matter.Field
	Value any
}

type ReadAttribute

type ReadAttribute struct {
	AttributeName string
	Attribute     *matter.Field
	Attributes    matter.FieldSet

	Variable string

	Validations []TestAction
	// contains filtered or unexported fields
}

type SubscribeAttribute

type SubscribeAttribute struct {
	AttributeName string
	Attribute     *matter.Field

	MinInterval uint64
	MaxInterval uint64
	Timeout     uint64
	// contains filtered or unexported fields
}

type Test

type Test struct {
	ID   string
	Name string

	Doc *asciidoc.Document

	Cluster *matter.Cluster

	GlobalVariableNames []string
	GlobalVariables     map[string]types.Entity
	Steps               []*TestStep

	StructChecks []*TestStep

	PICSList      []pics.Expression
	YamlVariables yaml.MapSlice
}

func (*Test) AddStep

func (t *Test) AddStep(s *TestStep)

type TestAction

type TestAction interface {
}

type TestEventTrigger

type TestEventTrigger struct {
	EventTrigger string
	EnableKey    string
	// contains filtered or unexported fields
}

type TestScriptConverter

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

func NewTestScriptConverter

func NewTestScriptConverter(spec *spec.Specification, sdkRoot string, picsLabels map[string]string) *TestScriptConverter

func (TestScriptConverter) Name

func (sp TestScriptConverter) Name() string

func (*TestScriptConverter) Process

func (sp *TestScriptConverter) Process(cxt context.Context, input *pipeline.Data[*testplan.Test], index int32, total int32) (outputs []*pipeline.Data[*Test], extras []*pipeline.Data[*testplan.Test], err error)

type TestScriptGenerator

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

func NewTestScriptGenerator

func NewTestScriptGenerator(spec *spec.Specification, sdkRoot string, picsLabels map[string]string) *TestScriptGenerator

func (TestScriptGenerator) Name

func (sp TestScriptGenerator) Name() string

func (*TestScriptGenerator) Process

func (sp *TestScriptGenerator) Process(cxt context.Context, input *pipeline.Data[*asciidoc.Document], index int32, total int32) (outputs []*pipeline.Data[*Test], extras []*pipeline.Data[*asciidoc.Document], err error)

type TestStep

type TestStep struct {
	Parent *Test

	Name        string
	Description string

	Cluster *matter.Cluster
	Actions []TestAction

	Entity types.Entity
}

type WaitForCommissionee

type WaitForCommissionee struct {
}

type WriteAttribute

type WriteAttribute struct {
	AttributeName string
	Attribute     *matter.Field

	Value any
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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