Versions in this module Expand all Collapse all v1 v1.1.0 Oct 29, 2026 v1.0.0 Oct 26, 2026 Changes in this version + const FixturesDatabasePrefix + const FixturesFile + const GoldenDynamic + const GoldenEnvVar + const GoldenJWT + const GoldenNow + const TestDatabasePrefix + const TestDatabaseURLEnv + func DropOrphanTestDatabases() ([]string, error) + func DropOrphanTestRoles() ([]string, error) + func DropTestDatabase(name string) error + func MockMultipartData(data map[string]string, fileFields ...string) (*bytes.Buffer, *multipart.Writer, error) + func RunWithRLSRole(app core.App, role string, token string, fn func(txApp core.App) error) error + func StubLogsData(app *TestApp) error + func StubMFARecords(app core.App) error + func StubOTPRecords(app core.App) error + func TempDirClone(dirToClone string) (string, error) + func TestValidationErrors(t *testing.T, rawErrors error, expectedErrors []string) + type ApiScenario struct + AfterTestFunc func(t testing.TB, app *TestApp, res *http.Response) + BeforeTestFunc func(t testing.TB, app *TestApp, e *core.ServeEvent) + Body io.Reader + Delay time.Duration + DisableTestAppCleanup bool + ExpectedContent []string + ExpectedEvents map[string]int + ExpectedStatus int + Headers map[string]string + Method string + Name string + NotExpectedContent []string + TestAppFactory func(t testing.TB) *TestApp + Timeout time.Duration + URL string + func (scenario *ApiScenario) Benchmark(b *testing.B) + func (scenario *ApiScenario) Test(t *testing.T) + type TestApp struct + EventCalls map[string]int + TestMailer *TestMailer + func NewEmptyTestApp() (*TestApp, error) + func NewTestApp(optTestDataDir ...string) (*TestApp, error) + func NewTestAppWithConfig(config core.BaseAppConfig) (*TestApp, error) + func (t *TestApp) Cleanup() + func (t *TestApp) ResetEventCalls() + type TestDatabase struct + Name string + URL string + func NewFixturesTestDatabase() (*TestDatabase, error) + func NewTestDatabase() (*TestDatabase, error) + type TestMailer struct + func (tm *TestMailer) FirstMessage() mailer.Message + func (tm *TestMailer) LastMessage() mailer.Message + func (tm *TestMailer) Messages() []*mailer.Message + func (tm *TestMailer) Reset() + func (tm *TestMailer) Send(m *mailer.Message) error + func (tm *TestMailer) TotalSend() int