httprunner/code/code_test.go

19 lines
282 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)
}