utils

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(testVal interface{}, expectedVal interface{}, t *testing.T, err string)

func ContainsString

func ContainsString(s []string, e string) bool

ContainsString checks whether a string is present in a slice

func GetAuthResponse

func GetAuthResponse(expiry int) []byte

func GetQueryFromFile added in v1.7.0

func GetQueryFromFile(fileName string) string

func Must added in v1.11.0

func Must(err error)

func RaiseIfError

func RaiseIfError(t *testing.T, err error)

func RunClientAndServerPreparedStatements added in v1.9.0

func RunClientAndServerPreparedStatements(t *testing.T, testCase func(t *testing.T, ctx context.Context))

RunClientAndServerPreparedStatements runs a test case with both client and server prepared statements

func RunInMemoryAndStream

func RunInMemoryAndStream(t *testing.T, testCase func(t *testing.T, ctx context.Context))

RunInMemoryAndStream runs a test case with both in memory result and streamed result

Types

This section is empty.

Jump to

Keyboard shortcuts

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