Documentation
¶
Overview ¶
Package conformance is the one test suite that both the SQLite and the in-memory store adapters must pass, proving they are interchangeable behind the store.ManifestStore and store.OperationalStore ports.
Index ¶
- func RunManifestStore(t *testing.T, newStore func(t *testing.T) store.ManifestStore)
- func RunOpLog(t *testing.T, newLog func(t *testing.T) store.OpLog)
- func RunOperationalStore(t *testing.T, newStore func(t *testing.T) store.OperationalStore)
- func RunVaultIndex(t *testing.T, newIndex func(t *testing.T) store.VaultIndex)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunManifestStore ¶
RunManifestStore exercises every store.ManifestStore method against a freshly constructed adapter.
func RunOpLog ¶
RunOpLog exercises every store.OpLog method against a freshly constructed adapter: dense sequence numbers per manifest, reads by position, and compaction that keeps what came after.
func RunOperationalStore ¶
RunOperationalStore exercises every store.OperationalStore method.
func RunVaultIndex ¶
RunVaultIndex exercises every store.VaultIndex method against a freshly constructed adapter, on top of the full store.ManifestStore suite the index embeds. Journal() and Operational() need only be non-nil and usable on a fresh adapter: surviving a close and reopen is not asserted here, since an in-memory adapter (if one is ever written) may have neither to persist.
Types ¶
This section is empty.