testsupport

package
v0.3.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Overview

Package testsupport contains explicitly non-production dependencies used by framework tests. It is internal so external applications cannot mistake these implementations for durable governance adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectTransactions

type DirectTransactions struct{}

DirectTransactions is a non-atomic test transaction manager.

func (DirectTransactions) WithinTransaction

func (DirectTransactions) WithinTransaction(ctx context.Context, operation func(context.Context) error) error

type DiscardAudit

type DiscardAudit struct{}

DiscardAudit is a non-durable test Hook.

func (DiscardAudit) Record

type MemoryIdempotencyStore

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

MemoryIdempotencyStore is a non-durable test IdempotencyStore.

func NewMemoryIdempotencyStore

func NewMemoryIdempotencyStore() *MemoryIdempotencyStore

func (*MemoryIdempotencyStore) Abort

func (*MemoryIdempotencyStore) Complete

func (*MemoryIdempotencyStore) Lookup

func (*MemoryIdempotencyStore) Reserve

type MemoryPlanStore

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

MemoryPlanStore is a non-durable test PlanStore.

func NewMemoryPlanStore

func NewMemoryPlanStore() *MemoryPlanStore

func (*MemoryPlanStore) DeleteExpired

func (store *MemoryPlanStore) DeleteExpired(_ context.Context, before time.Time) (int64, error)

func (*MemoryPlanStore) Get

func (store *MemoryPlanStore) Get(_ context.Context, hash string) (action.Plan, error)

func (*MemoryPlanStore) Save

func (store *MemoryPlanStore) Save(_ context.Context, plan action.Plan) error

Jump to

Keyboard shortcuts

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