mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-13 09:34:28 +08:00
add errcode func
This commit is contained in:
@@ -10,3 +10,9 @@ func TestGetErrorCode(t *testing.T) {
|
||||
code := GetErrorCode(err)
|
||||
fmt.Println(code)
|
||||
}
|
||||
|
||||
func TestGetErrorByCode(t *testing.T) {
|
||||
code := 0
|
||||
err := GetErrorByCode(code)
|
||||
fmt.Println("[TestGetErrorByCode]:err:",err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user