Documentation
¶
Index ¶
- func NewEngineTransformConfig(engineBucketID string) (*block_transform.Config, error)
- type Option
- type Testbed
- func Default(ctx context.Context, opts ...Option) (*Testbed, error)
- func MustDefault(t testing.TB, ctx context.Context, opts ...Option) *Testbed
- func NewTestbed(tb *testbed.Testbed, opts ...Option) (t *Testbed, tbErr error)
- func WithTestbedOptions(ctx context.Context, testbedOptions []testbed.Option, worldOpts []Option) (*Testbed, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEngineTransformConfig ¶ added in v0.57.2
func NewEngineTransformConfig(engineBucketID string) (*block_transform.Config, error)
Types ¶
type Option ¶
type Option any
Option is a option passed to NewTestbed
func WithWorldVerbose ¶
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 MustDefault ¶
MustDefault constructs the default testbed arrangement, failing t if construction fails and releasing the testbed when the test finishes.
func NewTestbed ¶
NewTestbed constructs a new world testbed from a Hydra testbed.
Click to show internal directories.
Click to hide internal directories.