testhelper

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDB

func OpenDB(t *testing.T) *sql.DB

func Resolve

func Resolve[T any](c *Container) T

Types

type Container

type Container struct {
	*dig.Container
}

Container is a wrapper of dig.Container

func NewContainer

func NewContainer(opts ...ContainerOption) *Container

func (*Container) Provide

func (c *Container) Provide(constructor any, opts ...dig.ProvideOption)

type ContainerOption

type ContainerOption func(*Container)

Jump to

Keyboard shortcuts

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