testutils

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package testutils contains some common utilities used exclusively by the test suite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUniqueTestDatabase

func CreateUniqueTestDatabase(t *testing.T) string

CreateUniqueTestDatabase creates a unique database for a test

func DSN

func DSN() string

func DSNForDatabase

func DSNForDatabase(dbName string) string

DSNForDatabase returns a DSN for a specific database name

func EvenOddHasher added in v0.10.2

func EvenOddHasher(colAny any) (uint64, error)

EvenOddHasher is a test hash function that shards assuming -80 and 80- shards. even goes to -80, odd goes to 80-

func IsMinimalRBRTestRunner added in v0.10.2

func IsMinimalRBRTestRunner(t *testing.T) bool

func RunSQL

func RunSQL(t *testing.T, stmt string)

func RunSQLInDatabase

func RunSQLInDatabase(t *testing.T, dbName, stmt string)

RunSQLInDatabase runs SQL in a specific database

Types

This section is empty.

Jump to

Keyboard shortcuts

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