Versions in this module Expand all Collapse all v1 v1.0.0 Jul 3, 2026 Changes in this version + type App struct + func NewApp(t *testing.T, handler ...http.Handler) *App + func (a *App) Close() + func (a *App) DELETE(path string) *Request + func (a *App) GET(path string) *Request + func (a *App) PATCH(path string, body any) *Request + func (a *App) POST(path string, body any) *Request + func (a *App) PUT(path string, body any) *Request + func (a *App) URL(path string) string + func (a *App) WithBearerToken(token string) *App + func (a *App) WithHeader(key, value string) *App + type FakeJob struct + Class string + Delay time.Duration + Payload any + Queue string + type FakeMail struct + Sent []FakeMessage + func (f *FakeMail) AssertNotSent(t *stdtesting.T, to string) + func (f *FakeMail) AssertSent(t *stdtesting.T, to string) + func (f *FakeMail) Count() int + func (f *FakeMail) Last() (FakeMessage, bool) + func (f *FakeMail) Record(msg FakeMessage) + func (f *FakeMail) Reset() + type FakeMessage struct + HTML string + SentAt time.Time + Subject string + Text string + To []string + type FakeQueue struct + Jobs []FakeJob + func (fq *FakeQueue) AssertDispatched(t *stdtesting.T, class string) + func (fq *FakeQueue) AssertNotDispatched(t *stdtesting.T, class string) + func (fq *FakeQueue) Count() int + func (fq *FakeQueue) Record(job FakeJob) + func (fq *FakeQueue) Reset() + type FakeStorage struct + Objects map[string][]byte + func NewFakeStorage() *FakeStorage + func (fs *FakeStorage) AssertNotStored(t *stdtesting.T, path string) + func (fs *FakeStorage) AssertStored(t *stdtesting.T, path string) + func (fs *FakeStorage) Get(path string) ([]byte, bool) + func (fs *FakeStorage) Has(path string) bool + func (fs *FakeStorage) Reset() + type Request struct + func (r *Request) Send() *Response + func (r *Request) WithHeader(key, value string) *Request + type Response struct + func (r *Response) AssertContains(substr string) *Response + func (r *Response) AssertCreated() *Response + func (r *Response) AssertHeader(key, expected string) *Response + func (r *Response) AssertJSON(key string, expected any) *Response + func (r *Response) AssertNotFound() *Response + func (r *Response) AssertOK() *Response + func (r *Response) AssertStatus(expected int) *Response + func (r *Response) AssertUnauthorized() *Response + func (r *Response) Body() []byte + func (r *Response) BodyString() string + func (r *Response) Header(key string) string + func (r *Response) JSON(v any) *Response + func (r *Response) StatusCode() int