fluent_test

package
v0.0.0-...-a1dc8d7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(t TestingT, opts ...Option) *fluentv2.Client

NewClient calls fluentv2.NewClient and auto-run migration.

func Open

func Open(t TestingT, driverName, dataSourceName string, opts ...Option) *fluentv2.Client

Open calls fluentv2.Open and auto-run migration.

Types

type Option

type Option func(*options)

Option configures client creation.

func WithMigrateOptions

func WithMigrateOptions(opts ...schema.MigrateOption) Option

WithMigrateOptions forwards options to auto migration.

func WithOptions

func WithOptions(opts ...fluentv2.Option) Option

WithOptions forwards options to client creation.

type TestingT

type TestingT interface {
	FailNow()
	Error(...any)
}

TestingT is the interface that is shared between testing.T and testing.B and used by fluent_test.

Jump to

Keyboard shortcuts

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