Versions in this module Expand all Collapse all v0 v0.47.5 Sep 22, 2023 Changes in this version + func ApplyMockIO(c *cobra.Command) (BufferReader, BufferWriter) + func DefaultContext(key storetypes.StoreKey, tkey storetypes.StoreKey) sdk.Context + func GenerateCoinKey(algo keyring.SignatureAlgo, cdc codec.Codec) (sdk.AccAddress, string, error) + func GenerateSaveCoinKey(keybase keyring.Keyring, keyName, mnemonic string, overwrite bool, ...) (sdk.AccAddress, string, error) + func GetRequest(url string) ([]byte, error) + func GetRequestWithHeaders(url string, headers map[string]string) ([]byte, error) + func GetTempDir(t testing.TB) string + func PostRequest(url string, contentType string, data []byte) ([]byte, error) + func RandSliceElem(r *rand.Rand, elems []E) (E, bool) + func TempFile(t testing.TB) *os.File + func WriteToNewTempFile(t testing.TB, s string) *os.File + type BufferReader interface + Reset func(string) + func ApplyMockIODiscardOutErr(c *cobra.Command) BufferReader + type BufferWriter interface + Bytes func() []byte + Reset func() + String func() string + type TestAccount struct + Address types.AccAddress + Name string + func CreateKeyringAccounts(t *testing.T, kr keyring.Keyring, num int) []TestAccount + type TestContext struct + CMS store.CommitMultiStore + Ctx sdk.Context + DB *dbm.MemDB + func DefaultContextWithDB(t *testing.T, key storetypes.StoreKey, tkey storetypes.StoreKey) TestContext