Files
httprunner/hrp/code/code_test.go
2024-12-19 20:26:39 +08:00

19 lines
281 B
Go

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)
}