tests

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ApplicationModule contains the dependency graph for the application components.

DefaultHTTPModule contains the dependency graph for the default http api components.

View Source
var DefaultModule = fx.Options(
	fx.Provide(func() env.Env { return env.NewEnvWithPath(utils.TestDirectoryRoot + "/.env") }),
	fx.Provide(func(env env.Env) *config.AppConfig {
		return config.NewAppConfig(&config.AssetsConfig{EmbedMigrations: MigrationFs(), TemplateSQL: TemplateSQLFs()}, env)
	}),
)

DefaultModule contains the dependency graph for the default application components.

TestPersistenceModule contains the dependency graph for the persistence components.

Functions

func MigrationFs

func MigrationFs() fs.FS

func NewForTest

func NewForTest(tb testing.TB, opts ...fx.Option) *fx.App

func TemplateSQLFs

func TemplateSQLFs() fs.FS

Types

This section is empty.

Jump to

Keyboard shortcuts

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