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 ¶
MarshalText writes the encoding encoding/json sees before the base64 form.
type FloatKeyed ¶
FloatKeyed maps a key type encoding/json cannot write.
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 ¶
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 TextStamp ¶
type TextStamp struct{}
TextStamp carries a text encoding and no JSON encoding.
func (TextStamp) MarshalText ¶
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 ¶
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
¶
- agent.go
- auth.go
- blob.go
- blob_matrix.go
- blob_stage_access.go
- blob_uploads.go
- bus_assets.go
- bus_kv.go
- bus_limits.go
- bus_open.go
- bus_publish.go
- bus_register.go
- bus_world.go
- codegen.go
- config.go
- config_bin.go
- config_serve.go
- config_world.go
- conversation.go
- core.go
- credentials.go
- expr_register.go
- expr_world.go
- flow_builder.go
- flow_compile.go
- flow_host.go
- flow_host_catalog.go
- flow_host_cost.go
- flow_host_decisions.go
- flow_host_fake.go
- flow_host_helpers.go
- flow_host_steps_basics.go
- flow_host_steps_register.go
- flow_host_steps_runtime.go
- flow_host_world.go
- flow_limits.go
- flow_machine.go
- middleware.go
- middleware_calls.go
- models.go
- models_catalog.go
- models_node.go
- models_providers.go
- models_retention.go
- prompt.go
- registerLocalCancel.go
- registerLocalCapabilities.go
- registerLocalChildIDs.go
- registerLocalChildren.go
- registerLocalClock.go
- registerLocalGates.go
- registerLocalPaging.go
- registerLocalPersistence.go
- registerLocalRuns.go
- registerLocalSelect.go
- registerLocalShutdown.go
- registerLocalStartIDs.go
- registerLocalStepScript.go
- registerLocalTenant.go
- registerLocalTimers.go
- runtime_capabilities.go
- runtime_local_children.go
- runtime_local_exec.go
- runtime_local_flows.go
- runtime_local_helpers.go
- runtime_local_register.go
- runtime_local_select_probe.go
- runtime_local_step.go
- runtime_local_world.go
- runtime_temporal_cancel_resolve.go
- runtime_temporal_chain.go
- runtime_temporal_checks.go
- runtime_temporal_control.go
- runtime_temporal_converter.go
- runtime_temporal_describe.go
- runtime_temporal_flows.go
- runtime_temporal_gates.go
- runtime_temporal_list.go
- runtime_temporal_outbox.go
- runtime_temporal_register.go
- runtime_temporal_routing.go
- runtime_temporal_serve.go
- runtime_temporal_setup.go
- runtime_temporal_stub.go
- runtime_temporal_stub_query.go
- runtime_temporal_world.go
- schema.go
- schema_helpers.go
- secrets.go
- secrets_keyset_material.go
- secrets_store.go
- shared.go
- sql.go
- sql_failures.go
- sql_world.go
- steps.go
- stream_eventlog.go
- stream_eventlog_world.go
- stream_live.go
- stream_live_world.go
- telemetry.go
- telemetry_export.go
- telemetry_redaction.go
- telemetry_setup.go
- telemetry_spans.go
- tool.go
- vruntime.go
- workers.go