Documentation ¶
Index ¶
- func AssertContains[T comparable](t *testing.T, expected T, testee []T, title string)
- func AssertContainsAll[T comparable](t *testing.T, expected []T, testee []T, title string)
- func AssertEquals(t *testing.T, expected, actual any, title string)
- func AssertError(t *testing.T, err error, title string)
- func AssertNoError(t *testing.T, err error, title string)
- func AssertNotEquals(t *testing.T, expected, actual any, title string)
- func AssertStringContains(t *testing.T, expected, testee, title string)
- type Response
- type TestServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContains ¶
func AssertContains[T comparable](t *testing.T, expected T, testee []T, title string)
func AssertContainsAll ¶
func AssertContainsAll[T comparable](t *testing.T, expected []T, testee []T, title string)
func AssertStringContains ¶
Types ¶
type TestServer ¶
func NewTestServer ¶
func NewTestServer(t *testing.T, handler http.Handler) *TestServer
func (*TestServer) DELETE ¶
func (ts *TestServer) DELETE(path string) Response
func (*TestServer) GET ¶
func (ts *TestServer) GET(path string) Response
Click to show internal directories.
Click to hide internal directories.