mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
refactor: move hrp/ to root folder
This commit is contained in:
18
code/code_test.go
Normal file
18
code/code_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package code
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetErrorCode(t *testing.T) {
|
||||
err := LoadYAMLError
|
||||
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