test

package
v0.0.0-...-ad0e884 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type MockAppDb

type MockAppDb struct {
	*gorm.DB
	sqlmock.Sqlmock
}

func NewMockDB

func NewMockDB() *MockAppDb

type TestApp

type TestApp struct {
	*TestAppOptions
}

func InitTestApp

func InitTestApp(options *TestAppOptions) *TestApp

type TestAppOptions

type TestAppOptions struct {
	// mock db
	AppDB db.IAppDB
	// repositories
	UserRepository repositories.IUserRepository
	// services
	UserService    services.IUserService
	MessageService services.IMessageService
}

Jump to

Keyboard shortcuts

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