sddtest

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package sddtest contains reusable conformance suites for SDD public ports. Adapter authors run these suites alongside their own backend-specific tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAccessResolverTests

func RunAccessResolverTests(t *testing.T, factory func(*testing.T) AccessResolverFixture)

func RunEmbeddingExecutorTests

func RunEmbeddingExecutorTests(t *testing.T, factory func(*testing.T) EmbeddingExecutorFixture)

func RunGraphStoreTests

func RunGraphStoreTests(t *testing.T, factory func(*testing.T) GraphStoreFixture)

func RunLLMExecutorTests

func RunLLMExecutorTests(t *testing.T, factory func(*testing.T) LLMExecutorFixture)

func RunMutationFinalizerTests

func RunMutationFinalizerTests(t *testing.T, factory func(*testing.T) MutationFinalizerFixture)

func RunSearchIndexStoreTests

func RunSearchIndexStoreTests(t *testing.T, factory func(*testing.T) SearchIndexStoreFixture)

func RunSessionStoreTests

func RunSessionStoreTests(t *testing.T, factory func(*testing.T) SessionStoreFixture)

func RunStagedBlobStoreTests

func RunStagedBlobStoreTests(t *testing.T, factory func(*testing.T) StagedBlobStoreFixture)

Types

type AccessResolverFixture

type AccessResolverFixture struct {
	Resolver     sdd.AccessResolver
	Identity     sdd.RequestIdentity
	Principal    sdd.Principal
	Project      sdd.ProjectID
	Dependency   string
	ProjectCount int
}

type EmbeddingExecutorFixture

type EmbeddingExecutorFixture struct {
	Executor sdd.EmbeddingExecutor
	Inputs   []sdd.EmbeddingInput
}

type GraphStoreFixture

type GraphStoreFixture struct {
	Store           sdd.GraphStore
	InitialRevision string
	Batch           sdd.MutationBatch
	Blobs           sdd.StagedBlobReader
	AttachmentEntry string
	AttachmentName  string
}

type LLMExecutorFixture

type LLMExecutorFixture struct {
	Executor           sdd.LLMExecutor
	Request            sdd.LLMRequest
	RequiredCapability string
}

type MutationFinalizerFixture

type MutationFinalizerFixture struct {
	Finalizer sdd.MutationFinalizer
	Applied   sdd.AppliedMutation
}

type SearchIndexStoreFixture

type SearchIndexStoreFixture struct {
	Store     sdd.SearchIndexStore
	Namespace sdd.IndexNamespace
	// Chunks is the reconcile set. To exercise the full contract it should
	// carry citation metadata (Body/Breadcrumb/IsSummary/…), distinct entry
	// IDs across at least two entries, and equal-length vectors.
	Chunks []sdd.IndexedChunk
	Query  []float32
	// Reopen returns a store backed by the same state — the same instance for
	// an in-memory store, a fresh handle over the same directory for a
	// persistent store. When nil the suite reuses Store (no reopen assertion).
	Reopen func() sdd.SearchIndexStore
}

type SessionStoreFixture

type SessionStoreFixture struct {
	Store    sdd.SessionStore
	Metadata sdd.SessionMetadata
	Append   sdd.SessionAppend
}

type StagedBlobStoreFixture

type StagedBlobStoreFixture struct {
	Store    sdd.StagedBlobStore
	Owner    sdd.BlobOwner
	Filename string
	Content  []byte
}

Jump to

Keyboard shortcuts

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