test

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FxE2E

func FxE2E(t *testing.T) fx.Option

func GetWebApp

func GetWebApp(t *testing.T, options ...fx.Option) (f *fiber.App)

func MockCache

func MockCache(mock cache.GenericCache) fx.Option

func MockEmptyCache

func MockEmptyCache() fx.Option

func MockSubjectRepo

func MockSubjectRepo(mock repository.Subject) fx.Option

func MockUserRepo

func MockUserRepo(mock repository.Auth) fx.Option

func RequireEnv

func RequireEnv(t *testing.T, envs ...string)

RequireEnv

func TestGet(t *testing.T) {
  RequireEnv(t, "mysql", "redis")
  ...
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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