election_mock

package
v0.3.43 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package election_mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockElectionAPIClient

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

MockElectionAPIClient is a mock of ElectionAPIClient interface.

func NewMockElectionAPIClient

func NewMockElectionAPIClient(ctrl *gomock.Controller) *MockElectionAPIClient

NewMockElectionAPIClient creates a new mock instance.

func (*MockElectionAPIClient) CancelVote

CancelVote mocks base method.

func (*MockElectionAPIClient) CandidateVote

CandidateVote mocks base method.

func (*MockElectionAPIClient) CircleVotes

CircleVotes mocks base method.

func (*MockElectionAPIClient) DeleteCircleGov

func (m *MockElectionAPIClient) DeleteCircleGov(ctx context.Context, in *v1.DeleteGovRequest, opts ...grpc.CallOption) (*v1.Empty, error)

DeleteCircleGov mocks base method.

func (*MockElectionAPIClient) EXPECT

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

func (*MockElectionAPIClient) ElectionVote

ElectionVote mocks base method.

func (*MockElectionAPIClient) FinalizeElection

FinalizeElection mocks base method.

func (*MockElectionAPIClient) GetElection

GetElection mocks base method.

func (*MockElectionAPIClient) GetElectionUserVoteByCircle

GetElectionUserVoteByCircle mocks base method.

func (*MockElectionAPIClient) GetGovernance

func (m *MockElectionAPIClient) GetGovernance(ctx context.Context, in *v1.GetGovRequest, opts ...grpc.CallOption) (*v1.GetGovResponse, error)

GetGovernance mocks base method.

func (*MockElectionAPIClient) InitCircleGov

func (m *MockElectionAPIClient) InitCircleGov(ctx context.Context, in *v1.InitGovRequest, opts ...grpc.CallOption) (*v1.Empty, error)

InitCircleGov mocks base method.

func (*MockElectionAPIClient) LiftCircleGov

func (m *MockElectionAPIClient) LiftCircleGov(ctx context.Context, in *v1.LiftGovRequest, opts ...grpc.CallOption) (*v1.Empty, error)

LiftCircleGov mocks base method.

func (*MockElectionAPIClient) StartElections

func (m *MockElectionAPIClient) StartElections(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Empty, error)

StartElections mocks base method.

func (*MockElectionAPIClient) TransferVotes

func (m *MockElectionAPIClient) TransferVotes(ctx context.Context, in *v1.TransferVotesRequest, opts ...grpc.CallOption) (*v1.Empty, error)

TransferVotes mocks base method.

func (*MockElectionAPIClient) UserVotes

UserVotes mocks base method.

func (*MockElectionAPIClient) Vote

Vote mocks base method.

type MockElectionAPIClientMockRecorder

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

MockElectionAPIClientMockRecorder is the mock recorder for MockElectionAPIClient.

func (*MockElectionAPIClientMockRecorder) CancelVote

func (mr *MockElectionAPIClientMockRecorder) CancelVote(ctx, in any, opts ...any) *gomock.Call

CancelVote indicates an expected call of CancelVote.

func (*MockElectionAPIClientMockRecorder) CandidateVote

func (mr *MockElectionAPIClientMockRecorder) CandidateVote(ctx, in any, opts ...any) *gomock.Call

CandidateVote indicates an expected call of CandidateVote.

func (*MockElectionAPIClientMockRecorder) CircleVotes

func (mr *MockElectionAPIClientMockRecorder) CircleVotes(ctx, in any, opts ...any) *gomock.Call

CircleVotes indicates an expected call of CircleVotes.

func (*MockElectionAPIClientMockRecorder) DeleteCircleGov

func (mr *MockElectionAPIClientMockRecorder) DeleteCircleGov(ctx, in any, opts ...any) *gomock.Call

DeleteCircleGov indicates an expected call of DeleteCircleGov.

func (*MockElectionAPIClientMockRecorder) ElectionVote

func (mr *MockElectionAPIClientMockRecorder) ElectionVote(ctx, in any, opts ...any) *gomock.Call

ElectionVote indicates an expected call of ElectionVote.

func (*MockElectionAPIClientMockRecorder) FinalizeElection

func (mr *MockElectionAPIClientMockRecorder) FinalizeElection(ctx, in any, opts ...any) *gomock.Call

FinalizeElection indicates an expected call of FinalizeElection.

func (*MockElectionAPIClientMockRecorder) GetElection

func (mr *MockElectionAPIClientMockRecorder) GetElection(ctx, in any, opts ...any) *gomock.Call

GetElection indicates an expected call of GetElection.

func (*MockElectionAPIClientMockRecorder) GetElectionUserVoteByCircle

func (mr *MockElectionAPIClientMockRecorder) GetElectionUserVoteByCircle(ctx, in any, opts ...any) *gomock.Call

GetElectionUserVoteByCircle indicates an expected call of GetElectionUserVoteByCircle.

func (*MockElectionAPIClientMockRecorder) GetGovernance

func (mr *MockElectionAPIClientMockRecorder) GetGovernance(ctx, in any, opts ...any) *gomock.Call

GetGovernance indicates an expected call of GetGovernance.

func (*MockElectionAPIClientMockRecorder) InitCircleGov

func (mr *MockElectionAPIClientMockRecorder) InitCircleGov(ctx, in any, opts ...any) *gomock.Call

InitCircleGov indicates an expected call of InitCircleGov.

func (*MockElectionAPIClientMockRecorder) LiftCircleGov

func (mr *MockElectionAPIClientMockRecorder) LiftCircleGov(ctx, in any, opts ...any) *gomock.Call

LiftCircleGov indicates an expected call of LiftCircleGov.

func (*MockElectionAPIClientMockRecorder) StartElections

func (mr *MockElectionAPIClientMockRecorder) StartElections(ctx, in any, opts ...any) *gomock.Call

StartElections indicates an expected call of StartElections.

func (*MockElectionAPIClientMockRecorder) TransferVotes

func (mr *MockElectionAPIClientMockRecorder) TransferVotes(ctx, in any, opts ...any) *gomock.Call

TransferVotes indicates an expected call of TransferVotes.

func (*MockElectionAPIClientMockRecorder) UserVotes

func (mr *MockElectionAPIClientMockRecorder) UserVotes(ctx, in any, opts ...any) *gomock.Call

UserVotes indicates an expected call of UserVotes.

func (*MockElectionAPIClientMockRecorder) Vote

func (mr *MockElectionAPIClientMockRecorder) Vote(ctx, in any, opts ...any) *gomock.Call

Vote indicates an expected call of Vote.

type MockElectionAPIServer

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

MockElectionAPIServer is a mock of ElectionAPIServer interface.

func NewMockElectionAPIServer

func NewMockElectionAPIServer(ctrl *gomock.Controller) *MockElectionAPIServer

NewMockElectionAPIServer creates a new mock instance.

func (*MockElectionAPIServer) CancelVote

CancelVote mocks base method.

func (*MockElectionAPIServer) CandidateVote

func (m *MockElectionAPIServer) CandidateVote(arg0 context.Context, arg1 *v1.CandidateVoteRequest) (*v1.CircleVote, error)

CandidateVote mocks base method.

func (*MockElectionAPIServer) CircleVotes

CircleVotes mocks base method.

func (*MockElectionAPIServer) DeleteCircleGov

func (m *MockElectionAPIServer) DeleteCircleGov(arg0 context.Context, arg1 *v1.DeleteGovRequest) (*v1.Empty, error)

DeleteCircleGov mocks base method.

func (*MockElectionAPIServer) EXPECT

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

func (*MockElectionAPIServer) ElectionVote

ElectionVote mocks base method.

func (*MockElectionAPIServer) FinalizeElection

FinalizeElection mocks base method.

func (*MockElectionAPIServer) GetElection

GetElection mocks base method.

func (*MockElectionAPIServer) GetElectionUserVoteByCircle

GetElectionUserVoteByCircle mocks base method.

func (*MockElectionAPIServer) GetGovernance

func (m *MockElectionAPIServer) GetGovernance(arg0 context.Context, arg1 *v1.GetGovRequest) (*v1.GetGovResponse, error)

GetGovernance mocks base method.

func (*MockElectionAPIServer) InitCircleGov

func (m *MockElectionAPIServer) InitCircleGov(arg0 context.Context, arg1 *v1.InitGovRequest) (*v1.Empty, error)

InitCircleGov mocks base method.

func (*MockElectionAPIServer) LiftCircleGov

func (m *MockElectionAPIServer) LiftCircleGov(arg0 context.Context, arg1 *v1.LiftGovRequest) (*v1.Empty, error)

LiftCircleGov mocks base method.

func (*MockElectionAPIServer) StartElections

func (m *MockElectionAPIServer) StartElections(arg0 context.Context, arg1 *v1.Empty) (*v1.Empty, error)

StartElections mocks base method.

func (*MockElectionAPIServer) TransferVotes

func (m *MockElectionAPIServer) TransferVotes(arg0 context.Context, arg1 *v1.TransferVotesRequest) (*v1.Empty, error)

TransferVotes mocks base method.

func (*MockElectionAPIServer) UserVotes

UserVotes mocks base method.

func (*MockElectionAPIServer) Vote

Vote mocks base method.

type MockElectionAPIServerMockRecorder

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

MockElectionAPIServerMockRecorder is the mock recorder for MockElectionAPIServer.

func (*MockElectionAPIServerMockRecorder) CancelVote

func (mr *MockElectionAPIServerMockRecorder) CancelVote(arg0, arg1 any) *gomock.Call

CancelVote indicates an expected call of CancelVote.

func (*MockElectionAPIServerMockRecorder) CandidateVote

func (mr *MockElectionAPIServerMockRecorder) CandidateVote(arg0, arg1 any) *gomock.Call

CandidateVote indicates an expected call of CandidateVote.

func (*MockElectionAPIServerMockRecorder) CircleVotes

func (mr *MockElectionAPIServerMockRecorder) CircleVotes(arg0, arg1 any) *gomock.Call

CircleVotes indicates an expected call of CircleVotes.

func (*MockElectionAPIServerMockRecorder) DeleteCircleGov

func (mr *MockElectionAPIServerMockRecorder) DeleteCircleGov(arg0, arg1 any) *gomock.Call

DeleteCircleGov indicates an expected call of DeleteCircleGov.

func (*MockElectionAPIServerMockRecorder) ElectionVote

func (mr *MockElectionAPIServerMockRecorder) ElectionVote(arg0, arg1 any) *gomock.Call

ElectionVote indicates an expected call of ElectionVote.

func (*MockElectionAPIServerMockRecorder) FinalizeElection

func (mr *MockElectionAPIServerMockRecorder) FinalizeElection(arg0, arg1 any) *gomock.Call

FinalizeElection indicates an expected call of FinalizeElection.

func (*MockElectionAPIServerMockRecorder) GetElection

func (mr *MockElectionAPIServerMockRecorder) GetElection(arg0, arg1 any) *gomock.Call

GetElection indicates an expected call of GetElection.

func (*MockElectionAPIServerMockRecorder) GetElectionUserVoteByCircle

func (mr *MockElectionAPIServerMockRecorder) GetElectionUserVoteByCircle(arg0, arg1 any) *gomock.Call

GetElectionUserVoteByCircle indicates an expected call of GetElectionUserVoteByCircle.

func (*MockElectionAPIServerMockRecorder) GetGovernance

func (mr *MockElectionAPIServerMockRecorder) GetGovernance(arg0, arg1 any) *gomock.Call

GetGovernance indicates an expected call of GetGovernance.

func (*MockElectionAPIServerMockRecorder) InitCircleGov

func (mr *MockElectionAPIServerMockRecorder) InitCircleGov(arg0, arg1 any) *gomock.Call

InitCircleGov indicates an expected call of InitCircleGov.

func (*MockElectionAPIServerMockRecorder) LiftCircleGov

func (mr *MockElectionAPIServerMockRecorder) LiftCircleGov(arg0, arg1 any) *gomock.Call

LiftCircleGov indicates an expected call of LiftCircleGov.

func (*MockElectionAPIServerMockRecorder) StartElections

func (mr *MockElectionAPIServerMockRecorder) StartElections(arg0, arg1 any) *gomock.Call

StartElections indicates an expected call of StartElections.

func (*MockElectionAPIServerMockRecorder) TransferVotes

func (mr *MockElectionAPIServerMockRecorder) TransferVotes(arg0, arg1 any) *gomock.Call

TransferVotes indicates an expected call of TransferVotes.

func (*MockElectionAPIServerMockRecorder) UserVotes

func (mr *MockElectionAPIServerMockRecorder) UserVotes(arg0, arg1 any) *gomock.Call

UserVotes indicates an expected call of UserVotes.

func (*MockElectionAPIServerMockRecorder) Vote

func (mr *MockElectionAPIServerMockRecorder) Vote(arg0, arg1 any) *gomock.Call

Vote indicates an expected call of Vote.

type MockUnsafeElectionAPIServer

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

MockUnsafeElectionAPIServer is a mock of UnsafeElectionAPIServer interface.

func NewMockUnsafeElectionAPIServer

func NewMockUnsafeElectionAPIServer(ctrl *gomock.Controller) *MockUnsafeElectionAPIServer

NewMockUnsafeElectionAPIServer creates a new mock instance.

func (*MockUnsafeElectionAPIServer) EXPECT

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

type MockUnsafeElectionAPIServerMockRecorder

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

MockUnsafeElectionAPIServerMockRecorder is the mock recorder for MockUnsafeElectionAPIServer.

Jump to

Keyboard shortcuts

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