testdb

package module
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 14 Imported by: 0

README

sneat-go-testdb

Test database for testing Sneat app modules

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockDB

func NewMockDB(t *testing.T, db dal.DB, options ...SetupOption)

NewMockDB create a new in-memory mock database

Types

type SetupOption

type SetupOption struct {
	// contains filtered or unexported fields
}

SetupOption options for test setup

func WithProfile1

func WithProfile1() SetupOption

WithProfile1 create 1st test profile

Jump to

Keyboard shortcuts

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