Versions in this module Expand all Collapse all v0 v0.1.0 Nov 14, 2026 Changes in this version + func ConfigDir(t testing.TB, files map[string]any) string + func Contains(t testing.TB, s, sub string, msg ...string) + func Decode[T any](r *Response) T + func Equal[T any](t testing.TB, got, want T, msg ...string) + func ErrorIs(t testing.TB, err, target error, msg ...string) + func Eventually(t testing.TB, timeout time.Duration, cond func() bool, msg ...string) + func Fixture[T any](t testing.TB, name string) T + func Golden(t testing.TB, name string, got any) + func NoError(t testing.TB, err error, msg ...string) + func NotContains(t testing.TB, s, sub string, msg ...string) + func True(t testing.TB, cond bool, msg ...string) + type Call struct + Body []byte + Header http.Header + Method string + Path string + Query string + func (c Call) JSON(t testing.TB, v any) + type Client struct + func NewClient(t testing.TB, h http.Handler) *Client + func (c *Client) Delete(target string) *Response + func (c *Client) Do(method, target string, body any) *Response + func (c *Client) Get(target string) *Response + func (c *Client) Patch(target string, body any) *Response + func (c *Client) Post(target string, body any) *Response + func (c *Client) Put(target string, body any) *Response + func (c *Client) WithHeader(k, v string) *Client + type Entry struct + Attrs map[string]any + Level slog.Level + Message string + type LogCapture struct + func AppOptions(t testing.TB, name string) (httpx.Options, *LogCapture) + func Logger(t testing.TB) (*slog.Logger, *LogCapture) + func (c *LogCapture) AtLevel(l slog.Level) []Entry + func (c *LogCapture) Entries() []Entry + func (c *LogCapture) Find(sub string) (Entry, bool) + func (c *LogCapture) RequireLogged(t testing.TB, sub string) Entry + func (c *LogCapture) Reset() + type Response struct + Body []byte + Header http.Header + Status int + func (r *Response) Envelope() httpx.Envelope + func (r *Response) Expect(status int) *Response + func (r *Response) ExpectError(status int, code httpx.Code) httpx.Envelope + func (r *Response) ExpectField(field, rule string) *Response + func (r *Response) JSON(v any) *Response + type Stub struct + func NewStub(t testing.TB) *Stub + func (s *Stub) Calls(pattern string) []Call + func (s *Stub) Handle(pattern string, fn http.HandlerFunc) *Stub + func (s *Stub) On(pattern string, status int, body any) *Stub + func (s *Stub) RequireCalled(pattern string, times int) []Call + func (s *Stub) URL() string