testbed

package
v0.56.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option any

Option is a option passed to NewTestbed

func WithWorldVerbose

func WithWorldVerbose(verbose bool) Option

WithWorldVerbose logs all world engine operations.

type Testbed

type Testbed struct {
	*testbed.Testbed

	// EngineBucketID is the bucket the engine is attached to.
	EngineBucketID string
	// EngineVolumeID is the volume the engine uses for state.
	EngineVolumeID string
	// EngineObjectStoreID is the object store the engine uses for state.
	EngineObjectStoreID string
	// EngineID is the engine identifier on the bus.
	EngineID string
	// Engine contains a reference to the running world engine.
	// Queries the engine directly.
	Engine world.Engine
	// EngineController contains the world engine controller
	EngineController *world_block_engine.Controller
	// BusEngine uses directives to locate the Engine.
	BusEngine world.Engine
	// WorldState contains the BusEngine-backed Engine state.
	WorldState world.WorldState
}

Testbed is a constructed testbed.

func Default

func Default(ctx context.Context, opts ...Option) (*Testbed, error)

Default constructs the default testbed arrangement.

func NewTestbed

func NewTestbed(tb *testbed.Testbed, opts ...Option) (t *Testbed, tbErr error)

NewTestbed constructs a new world testbed from a Hydra testbed.

func WithTestbedOptions

func WithTestbedOptions(ctx context.Context, testbedOptions []testbed.Option, worldOpts []Option) (*Testbed, error)

WithTestbedOptions constructs the testbed with the given testbed options.

Jump to

Keyboard shortcuts

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