Skip to content

Commit

Permalink
fix old marshal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-li committed Oct 11, 2024
1 parent d570cb7 commit fa2b2a4
Showing 1 changed file with 0 additions and 77 deletions.
77 changes: 0 additions & 77 deletions marshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ import (
"gopkg.in/inf.v0"
)

type AliasInt int
type AliasUint uint
type AliasUint8 uint8
type AliasUint16 uint16
type AliasUint32 uint32
type AliasUint64 uint64

var marshalTests = []struct {
Info TypeInfo
Data []byte
Expand Down Expand Up @@ -699,76 +692,6 @@ var marshalTests = []struct {
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeTinyInt},
[]byte("\xff"),
uint8(255),
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeTinyInt},
[]byte("\xff"),
uint64(255),
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeTinyInt},
[]byte("\xff"),
uint32(255),
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeTinyInt},
[]byte("\xff"),
uint16(255),
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeTinyInt},
[]byte("\xff"),
uint(255),
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeTinyInt},
[]byte("\xff"),
AliasUint8(255),
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeTinyInt},
[]byte("\xff"),
AliasUint64(255),
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeTinyInt},
[]byte("\xff"),
AliasUint32(255),
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeTinyInt},
[]byte("\xff"),
AliasUint16(255),
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeTinyInt},
[]byte("\xff"),
AliasUint(255),
nil,
nil,
},
{
NativeType{proto: 2, typ: TypeBlob},
[]byte(nil),
Expand Down

0 comments on commit fa2b2a4

Please sign in to comment.