Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Case ¶
type Case struct { Method string // 请求方法 Uri string // 请求路由 Params map[string]interface{} // 请求参数 Code int // 响应自定义状态码 Message string // 响应自定义信息 List bool // 是否是列表 Fields []string // 断言字段 Print bool // 是否打印 }
Case 测试用例
type SuiteCase ¶
SuiteCase 测试套件
func (*SuiteCase) Request ¶
func (s *SuiteCase) Request(method string, uri string, body map[string]interface{}) ( c *gin.Context, r *http.Request, w *httptest.ResponseRecorder, )
Request 发起请求 @param string method 请求方法 @param string url 请求链接 @param map[string]interface{} body 请求参数
func (*SuiteCase) TearDownSuite ¶
func (s *SuiteCase) TearDownSuite()
TearDownSuite 测试套件后置函数 @return void
Click to show internal directories.
Click to hide internal directories.