Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SkipUnlessSoak ¶ added in v0.3.0
SkipUnlessSoak skips the test unless SOAK_TEST is set. Call it before any expensive setup; Soak and SoakReplicas also enforce it.
Types ¶
type SoakConfig ¶
SoakConfig configures the soak test parameters.
type SoakResult ¶
SoakResult contains the results of a soak test run.
func Soak ¶
func Soak(t *testing.T, backend metadatadb.Backend, config SoakConfig) SoakResult
Soak runs a concurrent soak test against a backend, exercising all data structure types with random operations and periodic flushes, then verifies consistency by checking monotonic invariants and round-trip equality.
func SoakReplicas ¶ added in v0.3.0
func SoakReplicas(t *testing.T, backends []metadatadb.Backend, config SoakConfig) SoakResult
SoakReplicas runs the soak workload concurrently across multiple backends sharing the same underlying storage, then verifies the monotonic invariants on every replica and that all replicas converge to identical state.