Package audit/eventstoretest
Go module github.com/bide-ai/bide; all packages.
github.com/bide-ai/bide/audit/eventstoretest · pkg.go.dev · Stability: core
Package eventstoretest checks that an audit.EventStore keeps the contract the event trail builds on: contiguous, append-only positions per run, an idempotent re-append of the same leaf, a refusal (audit.ErrSeqTaken) of a different leaf at a stored position, and exactly one winner among writers racing for one position.
Functions
func Run(t *testing.T, open func(t *testing.T) audit.EventStore): Run runs the whole suite against the stores open returns.