mock

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) ArchiveProposal

func (m *MockClient) ArchiveProposal(ctx context.Context, contractID, proposalID string) error

ArchiveProposal mocks base method.

func (*MockClient) CreateProposal

CreateProposal mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetProposalByList

func (m *MockClient) GetProposalByList(ctx context.Context, contractID, proposalID string) (*client.ProposalRespMsg, error)

GetProposalByList mocks base method.

func (*MockClient) ListProposals

func (m *MockClient) ListProposals(ctx context.Context, includeArchived bool) ([]*client.ProposalRespMsg, error)

ListProposals mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) ArchiveProposal

func (mr *MockClientMockRecorder) ArchiveProposal(ctx, contractID, proposalID interface{}) *gomock.Call

ArchiveProposal indicates an expected call of ArchiveProposal.

func (*MockClientMockRecorder) CreateProposal

func (mr *MockClientMockRecorder) CreateProposal(ctx, msg interface{}) *gomock.Call

CreateProposal indicates an expected call of CreateProposal.

func (*MockClientMockRecorder) GetProposalByList

func (mr *MockClientMockRecorder) GetProposalByList(ctx, contractID, proposalID interface{}) *gomock.Call

GetProposalByList indicates an expected call of GetProposalByList.

func (*MockClientMockRecorder) ListProposals

func (mr *MockClientMockRecorder) ListProposals(ctx, includeArchived interface{}) *gomock.Call

ListProposals indicates an expected call of ListProposals.

Jump to

Keyboard shortcuts

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