Documentation ¶
Overview ¶
Package nullify provides methods to init nil values structs for test assertion.
Index ¶
- func AccAddress() sdk.AccAddress
- func BlankContext(storeKeyName string) sdk.Context
- func Fill(x interface{}) interface{}
- func PrivKeyAddressPairs(n int) (keys []cryptotypes.PrivKey, addrs []sdk.AccAddress)
- func RequireContainsTypedEvent(t require.TestingT, ctx sdk.Context, event proto.Message)
- func RequireHasTypedEvent(t require.TestingT, ctx sdk.Context, event proto.Message)
- func RequireNotHasTypedEvent(t require.TestingT, ctx sdk.Context, event proto.Message)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccAddress ¶ added in v0.15.0
func AccAddress() sdk.AccAddress
AccAddress Returns a sample account address (sdk.AccAddress) Note that AccAddress().String() can be used to get a string representation.
func BlankContext ¶ added in v0.16.1
func Fill ¶ added in v0.15.0
func Fill(x interface{}) interface{}
Fill analyze all struct fields and slices with reflection and initialize the nil and empty slices, structs, and pointers.
func PrivKeyAddressPairs ¶ added in v0.15.0
func PrivKeyAddressPairs(n int) (keys []cryptotypes.PrivKey, addrs []sdk.AccAddress)
PrivKeyAddressPairs generates (deterministically) a total of n private keys and addresses.
func RequireContainsTypedEvent ¶ added in v0.15.0
func RequireHasTypedEvent ¶ added in v0.15.0
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package network implements and exposes a fully operational in-process Tendermint test network that consists of at least one or potentially many validators.
|
Package network implements and exposes a fully operational in-process Tendermint test network that consists of at least one or potentially many validators. |
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.