testutil

package
v6.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package testutil provides internal testing utilities for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDSN

func GetDSN(opts ...DSNOption) string

GetDSN returns the data source name for the database connection.

func NewTestDB

func NewTestDB(opts ...DSNOption) *gorm.DB

NewTestDB creates a new database connection (for internal use).

Types

type DSNOption

type DSNOption func(string) string

func WithDBName

func WithDBName(name string) DSNOption

WithDBName sets the database name for the connection.

Jump to

Keyboard shortcuts

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