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:
@@ -1,11 +1,11 @@
|
||||
package form
|
||||
|
||||
import (
|
||||
"github.com/go-kratos/kratos/v2/internal/test/testproto"
|
||||
"testing"
|
||||
|
||||
"github.com/go-kratos/kratos/v2/encoding"
|
||||
"github.com/go-kratos/kratos/v2/internal/testproto/complex"
|
||||
testproto "github.com/go-kratos/kratos/v2/internal/testproto/encoding"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -34,8 +34,8 @@ func TestFormCodecMarshal(t *testing.T) {
|
||||
require.Equal(t, []byte("username=kratos"), content)
|
||||
|
||||
m := testproto.TestModel{
|
||||
Id: 1,
|
||||
Name: "kratos",
|
||||
Id: 1,
|
||||
Name: "kratos",
|
||||
}
|
||||
content, err = encoding.GetCodec(contentType).Marshal(m)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user