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

contracttest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package contracttest exercises observable migration behavior against every backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pair

func Pair(files fstest.MapFS, v int, up, down string)

func Run

func Run[T any](t *testing.T, f Factory[T])

Types

type Backend

type Backend[T any] struct {
	Driver  x.Driver[T]
	Count   func(context.Context, string) (int, error)
	Execute func(context.Context, T, string) error
}

type Factory

type Factory[T any] func(*testing.T) Backend[T]

Jump to

Keyboard shortcuts

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