Versions in this module Expand all Collapse all v0 v0.0.1 Nov 30, 2022 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 + LastFromAddress mail.Address + LastHtmlBody string + LastHtmlSubject string + LastToAddress mail.Address + TotalSend int + func (m *TestMailer) Reset() + func (m *TestMailer) Send(fromEmail mail.Address, toEmail mail.Address, subject string, html string, ...) error