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

stdtxtest

package
v0.0.242 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package stdtxtest provides testing utilities for our standard transactions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transact

func Transact[T testing.TB, TTx any](
	ctx context.Context,
	tb T,
	txr *stdtx.Transactor[TTx],
	fnc func(ctx context.Context, tb T, tx TTx) error,
)

Transact test helper function that passes T to the function being executed in the tx.

func TransactNC

func TransactNC[T testing.TB, TTx any](
	ctx context.Context,
	tb T,
	txr *stdtx.Transactor[TTx],
	fnc func(ctx context.Context, tb T, tx TTx) error,
)

TransactNC is like Transact but disabes query plan cost checking.

Types

This section is empty.

Jump to

Keyboard shortcuts

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