conformance

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package conformance provides a backend-agnostic test suite for the vectorstore.VectorStore interface -- every backend (pgvector, Qdrant) runs the exact same tests, so a behavioral difference between them shows up as a test failure, not a surprise in production. Same pattern as internal/state/conformance and internal/transport/conformance, extracted once a second backend (Qdrant) existed to actually share tests against.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunVectorStoreSuite

func RunVectorStoreSuite(t *testing.T, factory StoreFactory)

RunVectorStoreSuite runs every conformance test against factory.

Types

type StoreFactory

type StoreFactory func(t *testing.T) vectorstore.VectorStore

StoreFactory creates a fresh (or freshly-truncated) VectorStore for each test, fixed at 3 dimensions -- every test below uses simple axis-aligned vectors ({1,0,0} etc.) so results are exact and easy to reason about, not fixed-point-arithmetic-sensitive.

Jump to

Keyboard shortcuts

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