conformance

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 6 Imported by: 0

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

func RunSuite(t *testing.T, b storage.Backend, dims int)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL