Documentation ¶
Index ¶
- func GetTestConfigurationAndDependencies(t *testing.T, ctx context.Context, logger *logrus.Logger) (*config.Config, *config.Dependencies)
- func NewGin() *gin.Engine
- func NewTestResponseFromBytes(b []byte) (*testResponse, error)
- func NewTestResponseFromReader(r io.Reader) (*testResponse, error)
- func PerformRequest(handler http.Handler, method, path string, options ...Option) *httptest.ResponseRecorder
- func PerformRequestWithRecorder(recorder *httptest.ResponseRecorder, r http.Handler, method, path string, ...) *httptest.ResponseRecorder
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PerformRequest ¶
func PerformRequestWithRecorder ¶
func PerformRequestWithRecorder(recorder *httptest.ResponseRecorder, r http.Handler, method, path string, options ...Option) *httptest.ResponseRecorder
Types ¶
Click to show internal directories.
Click to hide internal directories.