branchingtest

package
v0.64.4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package branchingtest provides reusable conformance tests for DALgo branching providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunConformance

func RunConformance(t *testing.T, callbacks Callbacks)

RunConformance proves immutable checkpoints, source/sibling isolation, fresh handles, semantic fidelity and idempotent cleanup.

Types

type Callbacks

type Callbacks struct {
	New    Factory
	Seed   func(context.Context, dal.DB) error
	Mutate func(context.Context, dal.DB) error
	Digest func(context.Context, dal.DB) (string, error)
}

Callbacks describe a provider-specific semantic fixture. Generic dal.DB does not promise enumeration, so conformance never guesses collections or records.

type Factory

type Factory func(testing.TB) (dal.DB, branching.Provider)

Factory returns a fresh source database and a provider configured for it. Each conformance subtest receives a new pair.

Jump to

Keyboard shortcuts

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