proto/goutils/proto_build/tpls/http_grpc_method_file_test.tpl
huangsimin@fusen.cn c5df2b6478 修改为纯grpc
2023-12-06 17:13:51 +08:00

22 lines
325 B
Smarty

package test
import (
"{{.ProjectName}}/gen/go/service"
"fusen-basic/utils/log"
"testing"
)
// 只需要填写参数
func init() {
{{.RequestVar}} = &service.{{.RequestStruct}}{}
}
func Test{{.MethodName}}RPC(t *testing.T) {
resp, err := {{.MethodName}}RPC()
if err != nil {
t.Error(err)
}
log.Println(resp)
}