fix:tools/goctl/rpc/generator/template_test.go file has wrong parameters (#1882)

master
givemeafish 3 years ago committed by GitHub
parent 3ea8a2d4b6
commit 14ca39bc86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,13 +12,13 @@ import (
func TestGenTemplates(t *testing.T) { func TestGenTemplates(t *testing.T) {
_ = Clean() _ = Clean()
err := GenTemplates(nil) err := GenTemplates()
assert.Nil(t, err) assert.Nil(t, err)
} }
func TestRevertTemplate(t *testing.T) { func TestRevertTemplate(t *testing.T) {
_ = Clean() _ = Clean()
err := GenTemplates(nil) err := GenTemplates()
assert.Nil(t, err) assert.Nil(t, err)
fp, err := pathx.GetTemplateDir(category) fp, err := pathx.GetTemplateDir(category)
if err != nil { if err != nil {
@ -59,7 +59,7 @@ func TestRevertTemplate(t *testing.T) {
func TestClean(t *testing.T) { func TestClean(t *testing.T) {
_ = Clean() _ = Clean()
err := GenTemplates(nil) err := GenTemplates()
assert.Nil(t, err) assert.Nil(t, err)
fp, err := pathx.GetTemplateDir(category) fp, err := pathx.GetTemplateDir(category)
if err != nil { if err != nil {
@ -78,7 +78,7 @@ func TestClean(t *testing.T) {
func TestUpdate(t *testing.T) { func TestUpdate(t *testing.T) {
_ = Clean() _ = Clean()
err := GenTemplates(nil) err := GenTemplates()
assert.Nil(t, err) assert.Nil(t, err)
fp, err := pathx.GetTemplateDir(category) fp, err := pathx.GetTemplateDir(category)
if err != nil { if err != nil {

Loading…
Cancel
Save