Documentation
¶
Overview ¶
Package backendtest is a conformance suite for recall.Backend implementations. A backend package runs it against a live database:
func TestConformance(t *testing.T) {
backendtest.Run(t, func(t *testing.T) recall.Backend { return newBackend(t) })
}
Each subtest uses its own collection, named from the test, so a suite can share one database with other runs. The suite checks the storage contract Recall's fold depends on (exact totals, a stable ordered prefix, filters, read-after-write) and then drives a Client over the backend end to end.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collection ¶ added in v0.19.0
Collection names a fresh collection for one test, from the test's name, the time the process started and a counter, so suites can share a database with other runs and with repeats of themselves (go test -count).
Types ¶
This section is empty.