Documentation ¶
Index ¶
- func ActionResp(ctx sdk.Context, respErr error) (outCtx sdk.Context, err error)
- type Action
- func FundAccount(account sdk.AccAddress, amount sdk.Coins) Action
- func FundModule(module string, amount sdk.Coins) Action
- func IncreaseBlockNumberBy(numBlocks int64) Action
- func IncreaseBlockTimeBy(seconds time.Duration) Action
- func MoveToNextBlock() Action
- func MoveToNextBlockWithDuration(blockDuration time.Duration) Action
- func MoveToNextBlockWithTime(blockTime time.Time) Action
- func SetBlockNumber(blockNumber int64) Action
- func SetBlockTime(blockTime time.Time) Action
- type IsNotMandatory
- type TestCase
- type TestCases
- type TestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action interface { // Do is a specific implementation of the `Action`. When `Do` is called, // the action is performed and some feedback is provided about the action's // success. `Do` can mutate the app. // // Returns: // - outCtx: The new context after stateful changes // - err: The error if one was raised. // - isMandatory: Whether an error should have been raised. Do(app *app.NibiruApp, ctx sdk.Context) ( outCtx sdk.Context, err error, ) }
Action is a type of operation or task that can be performed in the Nibiru application.
func FundAccount ¶
func FundAccount(account sdk.AccAddress, amount sdk.Coins) Action
func IncreaseBlockNumberBy ¶
IncreaseBlockNumberBy increases the block number by the given number of blocks
func IncreaseBlockTimeBy ¶
func MoveToNextBlock ¶
func MoveToNextBlock() Action
func MoveToNextBlockWithTime ¶
func SetBlockNumber ¶
SetBlockNumber sets the block number to the given value
func SetBlockTime ¶
SetBlockTime sets the block time to the given value
type IsNotMandatory ¶
type IsNotMandatory interface {
IsNotMandatory()
}
IsNotMandatory is a marker interface for actions that are not mandatory, and it does not stop the test when there is an error.
type TestSuite ¶
type TestSuite struct {
// contains filtered or unexported fields
}
func NewTestSuite ¶
func (*TestSuite) WithTestCases ¶
Click to show internal directories.
Click to hide internal directories.