testutils

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 6 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 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