test

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMigration

func RunMigration(t *testing.T, baseDir, dataDir string) func(*testing.T)

func RunMigrationWithCustomPaths

func RunMigrationWithCustomPaths(t *testing.T, migrationDir, dataDir string) func(*testing.T)

Types

type ApiScenario

type ApiScenario struct {
	Name            string
	Url             string
	Method          string
	Body            io.Reader
	RunMigration    bool
	RequestHeaders  map[string]string
	ExpectedStatus  int
	ExpectedContent []string
	TestDir         string
	App             *TestApp
	BeforeTestFunc  func(t *testing.T, app *TestApp, router *gin.Engine)
}

func (*ApiScenario) Test

func (a *ApiScenario) Test(t *testing.T)

type TestApp

type TestApp struct {
	*core.BaseApp
}

func NewTestApp

func NewTestApp() (*TestApp, error)

func (*TestApp) CleanUp

func (t *TestApp) CleanUp()

func (*TestApp) EventClient

func (t *TestApp) EventClient() eventclient.Client

Jump to

Keyboard shortcuts

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