automaticconformance

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package automaticconformance provides the shared distributed-accounting contract for learning.AutomaticAdmissionLedger adapters. Implementations must run this suite; storage layout, transport, and scheduling are not part of it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

Run executes the complete automatic-admission ledger contract.

Types

type Clock

type Clock struct {
	// contains filtered or unexported fields
}

Clock is a deterministic backend clock shared by a conformance fixture.

func NewClock

func NewClock(now time.Time) *Clock

NewClock returns a deterministic clock at now.

func (*Clock) Now

func (c *Clock) Now() time.Time

Now returns the fixture's current backend time.

func (*Clock) Set

func (c *Clock) Set(now time.Time)

Set advances or rewinds the fixture's backend time.

type Factory

Factory returns a fresh, isolated ledger configured with authoritative policy and clock for each subtest.

Jump to

Keyboard shortcuts

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