tdb

package
v0.0.0-...-71be670 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTestCase

func RegisterTestCase(t *testing.T, ctx context.Context, name string) func() []ExecArgs

RegisterTestCase registers a new test case with the given name. The returned function can be used to retrieve the arguments passed to sql.Exec.

Types

type ExecArgs

type ExecArgs struct {
	Query string
	Args  []driver.Value
}

ExecArgs is a helper struct that encapsulates the arguments based to sql.Exec.

Jump to

Keyboard shortcuts

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