cosmos-sdk/codec/collections_test.go
testinginprod ed17f2d437
feat: add collections key encoders and value encoders for common types. (#14760)
Co-authored-by: testinginprod <testinginprod@somewhere.idk>
2023-01-27 11:10:54 +01:00

19 lines
423 B
Go

package codec
import (
"testing"
"cosmossdk.io/collections/colltest"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/gogoproto/types"
)
func TestCollectionsCorrectness(t *testing.T) {
cdc := NewProtoCodec(codectypes.NewInterfaceRegistry())
t.Run("CollValue", func(t *testing.T) {
colltest.TestValueCodec(t, CollValue[types.UInt64Value](cdc), types.UInt64Value{
Value: 500,
})
})
}