Documentation
¶
Overview ¶
Package memconformance provides a shared conformance test suite for the tool.MemoryStore interface. Adapters (the flock-file reference store, remote drivers, ...) call Run with a factory that constructs a fresh store, and the suite exercises only the tool.MemoryStore interface.
Importing "testing" in a non-_test.go file is intentional here: this is a test-helper package whose sole purpose is to be imported by adapter tests, the conventional Go pattern for shared conformance suites (cf. testing/fstest).
The suite pins the CONTRACT, not the implementation: durability across reopen, file-locking semantics, and the exact ranking order of Search are adapter-internal and deliberately NOT asserted here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run executes the shared MemoryStore conformance table against the store produced by newStore. newStore must return a fresh, isolated store each call.
func RunLifecycle ¶
func RunLifecycle(t *testing.T, newStore func(t *testing.T) (tool.MemoryStore, tool.MemoryLifecycleStore))
RunLifecycle executes the shared MemoryLifecycleStore conformance suite. The factory must return a fresh store implementing both the legacy and lifecycle contracts over the same records.
Types ¶
This section is empty.