Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGinTestContext ¶
func BuildGinTestContext(opt ContextOptions) (*gin.Context, *httptest.ResponseRecorder)
BuildGinTestContext creates a test context for Gin framework with the provided ContextOptions. It returns a *gin.Context and *httptest.ResponseRecorder, which can be used to simulate HTTP requests and test Gin handlers.
Types ¶
Click to show internal directories.
Click to hide internal directories.