vectortest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package vectortest provides a reusable conformance test suite for vector backends.

Index

Constants

This section is empty.

Variables

View Source
var TestIDs = struct {
	Chunk1, Chunk2, Chunk3 string
	Batch1, Batch2         string
}{
	Chunk1: "00000000-0000-0000-0000-000000000001",
	Chunk2: "00000000-0000-0000-0000-000000000002",
	Chunk3: "00000000-0000-0000-0000-000000000003",
	Batch1: "00000000-0000-0000-0000-0000000000b1",
	Batch2: "00000000-0000-0000-0000-0000000000b2",
}

TestIDs are deterministic UUIDs used by the conformance suite. Backends with foreign key constraints (e.g. pgvector) must ensure parent rows exist for these IDs before calling RunConformanceTests.

Functions

func RunConformanceTests

func RunConformanceTests(t *testing.T, backend vector.Backend)

RunConformanceTests runs the standard vector backend conformance test suite. Any Backend implementation must pass all these tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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