testmock

package
v0.14.9-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureDB

func ConfigureDB(cfg *config.AppConfig)

func CreateMigratedDatabase

func CreateMigratedDatabase() *sql.DB

func DropDatabase

func DropDatabase(db *sql.DB) error

func GetRawTestingDatabase

func GetRawTestingDatabase() *sql.DB

func GetTestingApp

func GetTestingApp(options ...TestingAppOption) (*app.App, error)

func GetTestingDatabase

func GetTestingDatabase() model.Repository

func GetTestingDatabaseFromRawDB

func GetTestingDatabaseFromRawDB(db *sql.DB) model.Repository

func StartTestEnvironment

func StartTestEnvironment()

func StopTestEnvironment

func StopTestEnvironment()

Types

type DemoApp

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

func GetDemoApplicationInstance

func GetDemoApplicationInstance() (*DemoApp, error)

func (*DemoApp) Endpoint

func (da *DemoApp) Endpoint() string

func (*DemoApp) JaegerEndpoint

func (da *DemoApp) JaegerEndpoint() string

func (*DemoApp) Stop

func (da *DemoApp) Stop()

type DemoAppConfig

type DemoAppConfig struct {
	Endpoint string
}

type TestingAppOption

type TestingAppOption func(*config.AppConfig)

func WithHttpPort

func WithHttpPort(port int) TestingAppOption

func WithServerPrefix

func WithServerPrefix(prefix string) TestingAppOption

Jump to

Keyboard shortcuts

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