@@ -21,6 +21,7 @@ import (
21
21
"github.com/things-go/encoding/form"
22
22
"github.com/things-go/encoding/json"
23
23
"github.com/things-go/encoding/msgpack"
24
+ pro "github.com/things-go/encoding/proto"
24
25
"github.com/things-go/encoding/testdata/examplepb"
25
26
"github.com/things-go/encoding/toml"
26
27
"github.com/things-go/encoding/xml"
@@ -45,14 +46,14 @@ func Test_Encoding_Register(t *testing.T) {
45
46
t .Run ("remove MIME type" , func (t * testing.T ) {
46
47
registry := New ()
47
48
48
- got := registry .Get (MIMEMSGPACK2 )
49
- _ , ok := got .(* msgpack .Codec )
50
- require .True (t , ok , "should be got MIME wildcard marshaler" )
49
+ got := registry .Get (MIMEPROTOBUF )
50
+ _ , ok := got .(* pro .Codec )
51
+ require .True (t , ok , "should be got MIME proto marshaler" )
51
52
52
- err := registry .Delete (MIMEMSGPACK2 )
53
+ err := registry .Delete (MIMEPROTOBUF )
53
54
require .NoError (t , err )
54
55
55
- got = registry .Get (MIMEMSGPACK2 )
56
+ got = registry .Get (MIMEPROTOBUF )
56
57
_ , ok = got .(* HTTPBodyCodec )
57
58
require .True (t , ok , "should be got MIME wildcard marshaler" )
58
59
})
0 commit comments