testutils

package
v2.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeeperTestData

type KeeperTestData struct {
	storetesting.BaseKeeperTestData

	StoreService corestoretypes.KVStoreService
	Keeper       *keeper.Keeper

	Hooks *MockHooks
}

func NewKeeperTestData

func NewKeeperTestData(t *testing.T) KeeperTestData

type MockHooks

type MockHooks struct {
	CalledMap map[string]bool
}

func NewMockHooks

func NewMockHooks() *MockHooks

func (MockHooks) AfterOperatorInactivatingCompleted

func (m MockHooks) AfterOperatorInactivatingCompleted(ctx context.Context, operatorID uint32) error

func (MockHooks) AfterOperatorInactivatingStarted

func (m MockHooks) AfterOperatorInactivatingStarted(ctx context.Context, operatorID uint32) error

func (MockHooks) AfterOperatorReactivated

func (m MockHooks) AfterOperatorReactivated(ctx context.Context, operatorID uint32) error

func (MockHooks) AfterOperatorRegistered

func (m MockHooks) AfterOperatorRegistered(ctx context.Context, operatorID uint32) error

func (MockHooks) BeforeOperatorDeleted

func (m MockHooks) BeforeOperatorDeleted(ctx context.Context, operatorID uint32) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL