Documentation
¶
Overview ¶
Package conformance provides a shared test suite that exercises the storage.Backend contract against any implementation. Both the SQLite and pgvector backends run this suite to ensure behavioural parity.
Usage from a backend's _test.go file:
func TestConformance(t *testing.T) {
backend := newBackend(t) // construct a fresh backend
defer backend.Close()
conformance.RunSuite(t, backend, dims)
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunSuite ¶
RunSuite runs the full dual-backend conformance suite against b. Each domain uses a unique namespace so sub-tests do not interfere with each other on the shared backend instance.
dims is the embedding dimension the backend was configured with; all embeddings generated by the suite use this dimension.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.