1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00

fix:modify encoding test proto path (#1388)

* fix:modify encoding test proto  path

* fix

* fix

* fix
This commit is contained in:
yuemoxi
2021-08-28 22:39:51 +08:00
committed by GitHub
parent 12f17a3e2e
commit 0dfab173f9
9 changed files with 61 additions and 60 deletions
+5 -4
View File
@@ -1,9 +1,10 @@
package proto
import (
"github.com/go-kratos/kratos/v2/internal/test/testproto"
"github.com/stretchr/testify/assert"
"testing"
testproto "github.com/go-kratos/kratos/v2/internal/testproto/encoding"
)
func TestName(t *testing.T) {
@@ -28,7 +29,7 @@ func TestCodec(t *testing.T) {
err = c.Unmarshal(m, &res)
assert.Nil(t, err)
assert.Equal(t, res.Id,model.Id)
assert.Equal(t, res.Name,model.Name)
assert.Equal(t, res.Hobby,model.Hobby)
assert.Equal(t, res.Id, model.Id)
assert.Equal(t, res.Name, model.Name)
assert.Equal(t, res.Hobby, model.Hobby)
}