testutils

package
v6.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeeperTestData

type KeeperTestData struct {
	storetesting.BaseKeeperTestData

	StoreKey storetypes.StoreKey
	MockCtrl *gomock.Controller

	PoolKeeper  *MockCommunityPoolKeeper
	PoolsKeeper *poolskeeper.Keeper

	Keeper *keeper.Keeper
	Hooks  *MockHooks
}

func NewKeeperTestData

func NewKeeperTestData(t *testing.T) KeeperTestData

type MockCommunityPoolKeeper

type MockCommunityPoolKeeper struct {
	// contains filtered or unexported fields
}

MockCommunityPoolKeeper is a mock of CommunityPoolKeeper interface.

func NewMockCommunityPoolKeeper

func NewMockCommunityPoolKeeper(ctrl *gomock.Controller) *MockCommunityPoolKeeper

NewMockCommunityPoolKeeper creates a new mock instance.

func (*MockCommunityPoolKeeper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCommunityPoolKeeper) FundCommunityPool

func (m *MockCommunityPoolKeeper) FundCommunityPool(ctx context.Context, amount types.Coins, sender types.AccAddress) error

FundCommunityPool mocks base method.

type MockCommunityPoolKeeperMockRecorder

type MockCommunityPoolKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockCommunityPoolKeeperMockRecorder is the mock recorder for MockCommunityPoolKeeper.

func (*MockCommunityPoolKeeperMockRecorder) FundCommunityPool

func (mr *MockCommunityPoolKeeperMockRecorder) FundCommunityPool(ctx, amount, sender any) *gomock.Call

FundCommunityPool indicates an expected call of FundCommunityPool.

type MockHooks

type MockHooks struct {
	CalledMap map[string]bool
}

func NewMockHooks

func NewMockHooks() *MockHooks

func (MockHooks) AfterServiceAccreditationModified

func (m MockHooks) AfterServiceAccreditationModified(_ context.Context, _ uint32) error

func (MockHooks) AfterServiceActivated

func (m MockHooks) AfterServiceActivated(_ context.Context, _ uint32) error

func (MockHooks) AfterServiceCreated

func (m MockHooks) AfterServiceCreated(_ context.Context, _ uint32) error

func (MockHooks) AfterServiceDeactivated

func (m MockHooks) AfterServiceDeactivated(_ context.Context, _ uint32) error

func (MockHooks) BeforeServiceDeleted

func (m MockHooks) BeforeServiceDeleted(_ context.Context, _ uint32) error

Jump to

Keyboard shortcuts

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