Help us shape the future of Go! Take the 2026 Go Developer Survey

durabletest

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package durabletest checks the execution store's atomicity and lease contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryGuardCloseFixture

QueryGuardCloseFixture supplies affirmative permanent full-set closure.

func QueryGuardCommitFixture

QueryGuardCommitFixture creates synthetic accepted-permission evidence.

func QueryIdentityFixture

func QueryIdentityFixture() durable.BuildQueryIdentity

QueryIdentityFixture is synthetic store conformance data, not artifact proof.

func QuerySettlementFixture

func QuerySettlementFixture(t *testing.T, f durable.QueryRemovalFence) durable.QueryRemovalSettlement

QuerySettlementFixture is synthetic store conformance evidence, not a host or provider settlement claim. Native qualification uses its owned controller.

func Run

func Run(t *testing.T, s durable.Store)

Run exercises a store with unique namespaces so cases can share a database.

func RunBuildRetirement

func RunBuildRetirement(t *testing.T, s durable.Store)

func RunOutbox

func RunOutbox(t *testing.T, s AuditStore)

RunOutbox exercises the public ownership, acceptance and delivery contract.

func RunOutboxConflict

func RunOutboxConflict(t *testing.T, s AuditStore)

RunOutboxConflict checks the persisted conflict fence on each backend.

func RunQueryEmptyRetiredLastBinding

func RunQueryEmptyRetiredLastBinding(t *testing.T, s durable.Store)

func RunQueryIntentRollback

func RunQueryIntentRollback(t *testing.T, s durable.Store, snapshot func(*testing.T, durable.NamespaceTarget) any, inject func(*testing.T, string) func())

RunQueryIntentRollback checks complete stored evidence around failed audit writes.

func RunQueryReceiptRecovery

func RunQueryReceiptRecovery(t *testing.T, s durable.Store, replace func(*testing.T, durable.LifecycleReceipt))

RunQueryReceiptRecovery corrupts only dedicated fixture receipt payloads. Replace must retain the immutable lookup columns so both recovery paths run.

func RunQueryRemovalGuard

func RunQueryRemovalGuard(t *testing.T, s durable.Store)

RunQueryRemovalGuard proves native protection, immutable replay and terminal closure.

func RunQueryRemovalGuardExpiry

func RunQueryRemovalGuardExpiry(t *testing.T, s durable.Store)

RunQueryRemovalGuardExpiry exercises original expiry, first bind and saved replay.

func RunQueryRemovalGuardPositiveEffect

func RunQueryRemovalGuardPositiveEffect(t *testing.T, s durable.Store)

RunQueryRemovalGuardPositiveEffect requires positive retained evidence after process expiry.

func RunQueryRemovalGuardRaces

func RunQueryRemovalGuardRaces(t *testing.T, s durable.Store)

RunQueryRemovalGuardRaces checks namespace coordination at competing boundaries.

func RunQueryRemovalGuardRowBounds

func RunQueryRemovalGuardRowBounds(t *testing.T, s durable.Store)

RunQueryRemovalGuardRowBounds qualifies the other records with joint maximum identities.

func RunQueryRuntimeRetention

func RunQueryRuntimeRetention(t *testing.T, s durable.Store)

func RunReads

func RunReads(t *testing.T, s ReadBackend, tie func([]durable.Key))

RunReads qualifies namespace predicates and immutable keyset order on real stores.

func RunRetirementCancellationAcknowledgment

func RunRetirementCancellationAcknowledgment(t *testing.T, s durable.Store)

RunRetirementCancellationAcknowledgment covers future acknowledgments even after the original parent and current child have both closed.

func RunRetirementEnrollment

func RunRetirementEnrollment(t *testing.T, s durable.Store)

RunRetirementEnrollment checks exact responses and historical admission accounting.

func RunRetirementLateChildBlocker

func RunRetirementLateChildBlocker(t *testing.T, s durable.Store)

func RunRetiringContinuationLineage

func RunRetiringContinuationLineage(t *testing.T, s durable.Store)

func RunRunChainHistoryBoundary

func RunRunChainHistoryBoundary(t *testing.T, s durable.Store)

RunRunChainHistoryBoundary proves accepted closing batches remain replayable.

func RunWorkerDrainIntentRollback

func RunWorkerDrainIntentRollback(t *testing.T, s durable.Store, snapshot func(*testing.T, durable.NamespaceTarget) any, reject func(*testing.T) func())

RunWorkerDrainIntentRollback checks acceptance and its required intent together.

func RunWorkerDrainReceipt

func RunWorkerDrainReceipt(t *testing.T, s durable.Store)

func RunWorkflowRetryCapacity

func RunWorkflowRetryCapacity(t *testing.T, s durable.Store)

RunWorkflowRetryCapacity checks capacity finality for failures and expired children.

func RunWorkflowRetryChains

func RunWorkflowRetryChains(t *testing.T, initial durable.Store, reopen func() durable.Store)

RunWorkflowRetryChains checks replay and child delivery across worker/store replacement. Reopen must return the same durable data through a fresh client.

func RunWorkflowTaskDeferral

func RunWorkflowTaskDeferral(t *testing.T, s durable.Store)

func RunWorkflowTaskDeferralIntentRollback

func RunWorkflowTaskDeferralIntentRollback(t *testing.T, s durable.Store, inject func() func())

Types

type AuditStore

type AuditStore interface {
	durable.Store
	durable.NamespaceStore
	durable.OutboxStore
}

type QueryGuardFixture

type QueryGuardFixture struct {
	Request   durable.QueryRemovalRevalidationRequest
	Begin     durable.LifecycleReceipt
	Candidate durable.QueryRuntimeBinding
	Survivor  durable.QueryRuntimeBinding
}

QueryGuardFixture holds synthetic storage evidence, never production attestations.

func NewQueryGuardExpiringFixture

func NewQueryGuardExpiringFixture(t *testing.T, s durable.Store) QueryGuardFixture

NewQueryGuardExpiringFixture gives the original reservation a short real lifetime.

func NewQueryGuardFixture

func NewQueryGuardFixture(t *testing.T, s durable.Store) QueryGuardFixture

NewQueryGuardFixture enrolls real native rows for the guard conformance campaign.

func NewQueryGuardMaximumFixture

func NewQueryGuardMaximumFixture(t *testing.T, s durable.Store) QueryGuardFixture

NewQueryGuardMaximumFixture populates all supported identity and evidence widths.

func RunQueryRemovalGuardMaximum

func RunQueryRemovalGuardMaximum(t *testing.T, s durable.Store) QueryGuardFixture

RunQueryRemovalGuardMaximum persists and recovers the actual joint maximum material.

type RegisteredAuditStore

type RegisteredAuditStore struct{ AuditStore }

RegisteredAuditStore runs existing conformance paths with both destinations required. Database constraint guards prove each accepted event and receipt has an intent, including paths that create children or carry continuation history.

func (RegisteredAuditStore) SignalWithStart

func (RegisteredAuditStore) StartExecution

Jump to

Keyboard shortcuts

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