Documentation
¶
Overview ¶
Package conformance is the one test suite every store adapter must pass, proving the SQLite, in-memory and Postgres adapters are interchangeable behind the store ports.
Index ¶
- func RunDocStore(t *testing.T, newStore func(t *testing.T) store.DocStore)
- func RunManifestStore(t *testing.T, newStore func(t *testing.T) store.ManifestStore)
- 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 RunDocStore ¶
RunDocStore exercises every store.DocStore method against a freshly constructed adapter, including the races two replicas run into: creating the same manifest's document at once, appending to one document at once, and appending while it is compacted.
func RunManifestStore ¶
RunManifestStore exercises every store.ManifestStore method against a freshly constructed adapter.
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.