testkit

package module
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FolderContent

func FolderContent(path string) []string

func InitDB

func InitDB(containerName string, params InitDBParams) fx.Option

func InitRedis

func InitRedis(containerName string, params InitRedisParams) fx.Option

func Run

func Run(t *testing.T, opts ...fx.Option)

Types

type InitDBParams

type InitDBParams struct {
	// ResultNameTag makes the created sql.DB driver to be tagged with.
	ResultNameTag string // Optional
	User          string
	Pass          string
	DB            string
	Queries       []string
}

type InitRedisParams

type InitRedisParams struct {
	// ResultNameTag makes the created redis.Client driver to be tagged with.
	ResultNameTag string // Optional
}

type WireMockFS

type WireMockFS struct {
	FS   embed.FS
	Root string
}

Jump to

Keyboard shortcuts

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