Versions in this module Expand all Collapse all v0 v0.16.0 Apr 28, 2023 Changes in this version + func MockMultipartData(data map[string]string, fileFields ...string) (*bytes.Buffer, *multipart.Writer, error) + func MockRequestLogsData(app *TestApp) error + func TempDirClone(dirToClone string) (string, error) + type ApiScenario struct + AfterTestFunc func(t *testing.T, app *TestApp, e *echo.Echo) + BeforeTestFunc func(t *testing.T, app *TestApp, e *echo.Echo) + Body io.Reader + Delay time.Duration + ExpectedContent []string + ExpectedEvents map[string]int + ExpectedStatus int + Method string + Name string + NotExpectedContent []string + RequestHeaders map[string]string + TestAppFactory func() (*TestApp, error) + Url string + func (scenario *ApiScenario) Test(t *testing.T) + type TestApp struct + EventCalls map[string]int + TestMailer *TestMailer + func NewTestApp(optTestDataDir ...string) (*TestApp, error) + func (t *TestApp) Cleanup() + func (t *TestApp) NewMailClient() mailer.Mailer + func (t *TestApp) ResetEventCalls() + type TestMailer struct + LastMessage mailer.Message + TotalSend int + func (c *TestMailer) Send(m *mailer.Message) error + func (m *TestMailer) Reset()