conformance

package
v1.17.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package conformance is the shared agentcfg.Registry driver conformance suite: a single set of behaviour assertions every driver must pass, so a future driver inherits the contract verbatim (the §11 conformance-suite pattern). The StateStore-backed driver is the first consumer.

The full revision/diff/rollback matrix runs under BOTH ConfigScope arms (ConfigScopeAgent and ConfigScopeUser), asserting parity AND cross-scope invisibility: a revision id minted under one scope is not resolvable under the other (the distinct record-kind prefix guarantees this). The user variant is keyed by the caller's REAL (tenant, user), so the conformance identity (a complete, non-sentinel triple) keys both arms correctly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, mk Factory)

Run executes the full conformance suite against a driver built by mk, under both ConfigScope arms, plus the cross-scope invisibility assertion.

Types

type Factory

type Factory func(t *testing.T) agentcfg.Registry

Factory builds a fresh, empty Registry for one sub-test. The returned cleanup is called via t.Cleanup by Run.

Jump to

Keyboard shortcuts

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