steps

package
v0.0.0-...-ecee8c2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 131 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Step texts that more than one capability's scenarios use are registered once in this file. A capability that needs a new generic text adds it here and registers a source for its world; it never registers the shared text itself.

Package steps holds the shared step library. Steps are thin: they translate glossary phrases into calls on the World's drivers and assert on results. Add a phrase only together with the scenario that needs it; keep phrases in the language of specs/glossary.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(sc *godog.ScenarioContext)

Initialize registers hooks and every domain's steps once per godog suite run (TestSuiteInitializer in internal/bdd/bdd_test.go). Everything it registers is shared by all scenarios of that suite; per-scenario state lives in World, which the Before hook below creates each scenario; each register* fills its own field in its own Before hook. Domain register* functions must not hold scenario state in variables their step closures capture (see register_state_test.go).

Types

type Binary

type Binary []byte

Binary is a named byte slice whose values carry their own text encoding.

func (Binary) MarshalText

func (Binary) MarshalText() ([]byte, error)

MarshalText writes the encoding encoding/json sees before the base64 form.

type FloatKeyed

type FloatKeyed map[float64]string

FloatKeyed maps a key type encoding/json cannot write.

type IntKeyed

type IntKeyed map[int]string

IntKeyed maps integer keys, which encoding/json writes as strings.

type IntPtr

type IntPtr *int

IntPtr is a named pointer to an integer. encoding/json ignores the string option on it, because the option follows only one unnamed pointer.

type JSONStamp

type JSONStamp struct{}

JSONStamp carries a JSON encoding whose result the generator cannot know.

func (JSONStamp) MarshalJSON

func (JSONStamp) MarshalJSON() ([]byte, error)

MarshalJSON writes a value the generator has to admit.

type PointerStamp

type PointerStamp struct{}

PointerStamp carries its JSON encoding only on the pointer's method set.

func (*PointerStamp) MarshalJSON

func (*PointerStamp) MarshalJSON() ([]byte, error)

MarshalJSON writes the encoding of an addressable value.

type StrPtr

type StrPtr *string

StrPtr is a named pointer to a string, encoded like IntPtr without quotes.

type TextKeyed

type TextKeyed map[textKey]string

TextKeyed maps keys written through MarshalText.

type TextStamp

type TextStamp struct{}

TextStamp carries a text encoding and no JSON encoding.

func (TextStamp) MarshalText

func (TextStamp) MarshalText() ([]byte, error)

MarshalText writes the encoding encoding/json sees before the structure.

type UUID

type UUID [16]byte

UUID is a named byte array whose values carry their own text encoding.

func (UUID) MarshalText

func (UUID) MarshalText() ([]byte, error)

MarshalText writes the encoding encoding/json sees before the integer array.

type World

type World struct {
	Agent        *agentWorld
	Auth         *authWorld
	Blob         *blobWorld
	Bus          *busWorld
	Catalog      *catalogWorld
	Codegen      *codegenWorld
	Config       *configWorld
	Conversation *convWorld
	Core         *coreWorld
	Credentials  *credentialsWorld
	Eventlog     *eventlogWorld
	Expr         *exprWorld
	Flow         *flowWorld
	FlowBuilder  *builderWorld
	Host         *hostWorld
	Local        *localWorld
	Machine      *machineWorld
	Model        *modelWorld
	Node         *nodeWorld
	Prompt       *promptWorld
	Providers    *providerWorld
	Schema       *schemaWorld
	Secrets      *secretsWorld
	SQL          *sqlWorld
	Stream       *streamWorld
	Telemetry    *telemetryWorld
	Temporal     *temporalWorld
	Tool         *toolWorld
	Worker       *workerWorld
}

World is per-scenario state. Never share it between scenarios. Fields stay sorted alphabetically.

Source Files

Jump to

Keyboard shortcuts

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