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

deps: middleware add separate go.mod and removes framework deps (#1385)

* deps: middleware add separate go.mod and removes framework deps
This commit is contained in:
包子
2021-08-30 23:07:31 +08:00
committed by GitHub
parent c55528f321
commit 7b6332ee75
57 changed files with 1081 additions and 1932 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ import (
"github.com/stretchr/testify/assert"
"testing"
testproto "github.com/go-kratos/kratos/v2/internal/testproto/encoding"
testData "github.com/go-kratos/kratos/v2/internal/testdata/encoding"
)
func TestName(t *testing.T) {
@@ -15,7 +15,7 @@ func TestName(t *testing.T) {
func TestCodec(t *testing.T) {
c := new(codec)
model := testproto.TestModel{
model := testData.TestModel{
Id: 1,
Name: "kratos",
Hobby: []string{"study", "eat", "play"},
@@ -24,7 +24,7 @@ func TestCodec(t *testing.T) {
m, err := c.Marshal(&model)
assert.Nil(t, err)
var res testproto.TestModel
var res testData.TestModel
err = c.Unmarshal(m, &res)
assert.Nil(t, err)