cosmos-sdk/x/auth/types/client_tx_test.go

27 lines
566 B
Go

package types_test
import (
"testing"
"github.com/cosmos/cosmos-sdk/client/testutil"
"github.com/stretchr/testify/suite"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/types"
)
func testCodec() *codec.Codec {
cdc := codec.New()
sdk.RegisterCodec(cdc)
cdc.RegisterConcrete(sdk.TestMsg{}, "cosmos-sdk/Test", nil)
return cdc
}
func TestStdTxGenerator(t *testing.T) {
cdc := testCodec()
txGen := types.StdTxGenerator{Cdc: cdc}
suite.Run(t, testutil.NewTxGeneratorTestSuite(txGen))
}