Documentation
¶
Overview ¶
Package storetest is the conformance suite for store implementations: the in-memory store passes it today and a Postgres store must pass it later.
func TestConformance(t *testing.T) {
storetest.Run(t, func(o store.Options) storetest.Subject { return memory.New(o) })
}
The suite passes each new store its Options: a clock.Fake (which drives CreatedAt, lock expiry and retention) and, for some tests, smaller caps and buffers. Run it under -race.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Epoch = time.Date(2026, 1, 1, 0, 0, 0, 0, time.UTC)
Epoch is the fake clock's starting time.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.