Documentation
¶
Overview ¶
Package storetest provides a backend-agnostic conformance suite for the store.Store interface. Every backend (memory, sqlite, postgres, mongo) is expected to pass the same contract tests, so behavioral drift between implementations is caught automatically rather than shipped.
Run it from each backend's test package:
func TestConformance(t *testing.T) {
storetest.RunConformance(t, func(t *testing.T) store.Store { ... })
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunConformance ¶
RunConformance runs every contract test against stores produced by newStore.
skip names cases the backend does not yet implement. Each is still registered as a subtest and calls t.Skip from inside it, so a skipped case shows up in `go test -v` output rather than silently not existing.
Types ¶
Click to show internal directories.
Click to hide internal directories.