Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
Client *helix.CQLClient
ChaosA *chaos.Session
ChaosB *chaos.Session
Tracker *workload.WriteTracker
Stats *workload.WorkloadStats
Logger *slog.Logger
Metrics *testutil.TestMetricsCollector
MemReplayer *replay.MemoryReplayer
}
Environment holds the shared resources for the simulation.
type Scenario ¶
type Scenario interface {
// Name returns the unique name of the scenario.
Name() string
// Description returns a human-readable description.
Description() string
// Run executes the scenario logic.
Run(ctx context.Context, env *Environment) error
}
Scenario defines a test scenario interface.
Click to show internal directories.
Click to hide internal directories.