Documentation
¶
Index ¶
- func AssertContains[T comparable](t testing.TB, expected T, testee []T, title string)
- func AssertContainsAll[T comparable](t testing.TB, expected []T, testee []T, title string)
- func AssertEquals(t testing.TB, expected, actual any, title string)
- func AssertError(t testing.TB, err error, title string)
- func AssertNoError(t testing.TB, err error, title string)
- func AssertNotEquals(t testing.TB, expected, actual any, title string)
- func AssertNotNil(t testing.TB, actual any, title string)
- func AssertStringContains(t testing.TB, expected, testee, title string)
- func SkipIntegrationTest(t testing.TB)
- type Response
- type TestServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContains ¶
func AssertContains[T comparable](t testing.TB, expected T, testee []T, title string)
func AssertContainsAll ¶
func AssertContainsAll[T comparable](t testing.TB, expected []T, testee []T, title string)
func AssertStringContains ¶
func SkipIntegrationTest ¶
Types ¶
type TestServer ¶
func NewTestServer ¶
func NewTestServer(t testing.TB, 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.