testutil

package
v0.0.0-...-027dd3d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoTest

func DoTest[T any](
	t *testing.T,
	tester func(T) error,
	cases []map[string]Case[T],
)

Types

type Case

type Case[T any] struct {
	Malleate func(*T)
	Error    func() error
}

type CaseIterator

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

func NewCaseIterator

func NewCaseIterator[T any](components []map[string]T) CaseIterator

func (CaseIterator) Key

func (ci CaseIterator) Key() []string

func (*CaseIterator) Next

func (ci *CaseIterator) Next()

func (CaseIterator) Valid

func (ci CaseIterator) Valid() bool

type MockAuthKeeper

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

MockAuthKeeper is a mock of AuthKeeper interface.

func NewMockAuthKeeper

func NewMockAuthKeeper(ctrl *gomock.Controller) *MockAuthKeeper

NewMockAuthKeeper creates a new mock instance.

func (*MockAuthKeeper) EXPECT

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

func (*MockAuthKeeper) HasAccount

func (m *MockAuthKeeper) HasAccount(arg0 context.Context, arg1 types.AccAddress) bool

HasAccount mocks base method.

func (*MockAuthKeeper) NewAccount

func (m *MockAuthKeeper) NewAccount(arg0 context.Context, arg1 types.AccountI) types.AccountI

NewAccount mocks base method.

func (*MockAuthKeeper) SetAccount

func (m *MockAuthKeeper) SetAccount(arg0 context.Context, arg1 types.AccountI)

SetAccount mocks base method.

type MockAuthKeeperMockRecorder

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

MockAuthKeeperMockRecorder is the mock recorder for MockAuthKeeper.

func (*MockAuthKeeperMockRecorder) HasAccount

func (mr *MockAuthKeeperMockRecorder) HasAccount(arg0, arg1 interface{}) *gomock.Call

HasAccount indicates an expected call of HasAccount.

func (*MockAuthKeeperMockRecorder) NewAccount

func (mr *MockAuthKeeperMockRecorder) NewAccount(arg0, arg1 interface{}) *gomock.Call

NewAccount indicates an expected call of NewAccount.

func (*MockAuthKeeperMockRecorder) SetAccount

func (mr *MockAuthKeeperMockRecorder) SetAccount(arg0, arg1 interface{}) *gomock.Call

SetAccount indicates an expected call of SetAccount.

type MockMessageRouter

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

MockMessageRouter is a mock of MessageRouter interface.

func NewMockMessageRouter

func NewMockMessageRouter(ctrl *gomock.Controller) *MockMessageRouter

NewMockMessageRouter creates a new mock instance.

func (*MockMessageRouter) EXPECT

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

func (*MockMessageRouter) Handler

Handler mocks base method.

type MockMessageRouterMockRecorder

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

MockMessageRouterMockRecorder is the mock recorder for MockMessageRouter.

func (*MockMessageRouterMockRecorder) Handler

func (mr *MockMessageRouterMockRecorder) Handler(msg interface{}) *gomock.Call

Handler indicates an expected call of Handler.

Jump to

Keyboard shortcuts

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