Documentation
¶
Overview ¶
Package testutil provides shared test utilities and fixtures.
This package centralises common test helpers to reduce code duplication across test files and improve test maintainability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertError ¶
AssertError fails the test if err is nil.
func AssertNoError ¶
AssertNoError fails the test if err is not nil.
func AssertStatusCode ¶
AssertStatusCode checks that the response status code matches expected.
func NewTestRecorder ¶
func NewTestRecorder() *httptest.ResponseRecorder
NewTestRecorder creates a test response recorder.
func NewTestRequest ¶
NewTestRequest creates a test HTTP request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.