Documentation
¶
Overview ¶
Package storetest holds the shared Store-driver conformance suite (RFC §13, AGENTS.md §9). Every Store driver must pass RunConformance; a new persistence guarantee is added here once and proven against every driver, never bolted onto one driver.
A driver's test wires the suite in with a few lines:
func TestConformance(t *testing.T) {
storetest.RunConformance(t, func() store.Store { return inmem.New() })
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunBenchmarks ¶
RunBenchmarks exercises the Store's common operations under benchmark. open must return a freshly-constructed, empty Store on each call; the suite closes each Store it opens. A driver's *_test.go calls this from a BenchmarkXxx function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.