Documentation
¶
Index ¶
- 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
- type 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
- type LogCapture
- type Response
- type Stub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Eventually ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) WithHeader ¶
type LogCapture ¶
type LogCapture struct {
// contains filtered or unexported fields
}
func AppOptions ¶
func AppOptions(t testing.TB, name string) (httpx.Options, *LogCapture)
func (*LogCapture) Entries ¶
func (c *LogCapture) Entries() []Entry
func (*LogCapture) RequireLogged ¶
func (c *LogCapture) RequireLogged(t testing.TB, sub string) Entry
func (*LogCapture) Reset ¶
func (c *LogCapture) Reset()
type Response ¶
type Response struct {
Status int
Header http.Header
Body []byte
// contains filtered or unexported fields
}
func (*Response) ExpectError ¶
func (*Response) ExpectField ¶
Click to show internal directories.
Click to hide internal directories.