mocks

package
v1.7.0-citest.0-nomain Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPoetValidator

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

MockPoetValidator is a mock of PoetValidator interface.

func NewMockPoetValidator

func NewMockPoetValidator(ctrl *gomock.Controller) *MockPoetValidator

NewMockPoetValidator creates a new mock instance.

func (*MockPoetValidator) EXPECT

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

func (*MockPoetValidator) ValidateAndStoreMsg

func (m *MockPoetValidator) ValidateAndStoreMsg(arg0 context.Context, arg1 types.Hash32, arg2 p2p.Peer, arg3 []byte) error

ValidateAndStoreMsg mocks base method.

type MockPoetValidatorMockRecorder

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

MockPoetValidatorMockRecorder is the mock recorder for MockPoetValidator.

func (*MockPoetValidatorMockRecorder) ValidateAndStoreMsg

func (mr *MockPoetValidatorMockRecorder) ValidateAndStoreMsg(arg0, arg1, arg2, arg3 any) *MockPoetValidatorValidateAndStoreMsgCall

ValidateAndStoreMsg indicates an expected call of ValidateAndStoreMsg.

type MockPoetValidatorValidateAndStoreMsgCall added in v1.4.0

type MockPoetValidatorValidateAndStoreMsgCall struct {
	*gomock.Call
}

MockPoetValidatorValidateAndStoreMsgCall wrap *gomock.Call

func (*MockPoetValidatorValidateAndStoreMsgCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockPoetValidatorValidateAndStoreMsgCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockPoetValidatorValidateAndStoreMsgCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockSyncValidator

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

MockSyncValidator is a mock of SyncValidator interface.

func NewMockSyncValidator

func NewMockSyncValidator(ctrl *gomock.Controller) *MockSyncValidator

NewMockSyncValidator creates a new mock instance.

func (*MockSyncValidator) EXPECT

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

func (*MockSyncValidator) HandleMessage

func (m *MockSyncValidator) HandleMessage(arg0 context.Context, arg1 types.Hash32, arg2 p2p.Peer, arg3 []byte) error

HandleMessage mocks base method.

type MockSyncValidatorHandleMessageCall added in v1.4.0

type MockSyncValidatorHandleMessageCall struct {
	*gomock.Call
}

MockSyncValidatorHandleMessageCall wrap *gomock.Call

func (*MockSyncValidatorHandleMessageCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockSyncValidatorHandleMessageCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSyncValidatorHandleMessageCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockSyncValidatorMockRecorder

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

MockSyncValidatorMockRecorder is the mock recorder for MockSyncValidator.

func (*MockSyncValidatorMockRecorder) HandleMessage

func (mr *MockSyncValidatorMockRecorder) HandleMessage(arg0, arg1, arg2, arg3 any) *MockSyncValidatorHandleMessageCall

HandleMessage indicates an expected call of HandleMessage.

type Mockhost

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

Mockhost is a mock of host interface.

func NewMockhost

func NewMockhost(ctrl *gomock.Controller) *Mockhost

NewMockhost creates a new mock instance.

func (*Mockhost) EXPECT

func (m *Mockhost) EXPECT() *MockhostMockRecorder

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

func (*Mockhost) ID

func (m *Mockhost) ID() p2p.Peer

ID mocks base method.

type MockhostIDCall added in v1.4.0

type MockhostIDCall struct {
	*gomock.Call
}

MockhostIDCall wrap *gomock.Call

func (*MockhostIDCall) Do added in v1.4.0

func (c *MockhostIDCall) Do(f func() p2p.Peer) *MockhostIDCall

Do rewrite *gomock.Call.Do

func (*MockhostIDCall) DoAndReturn added in v1.4.0

func (c *MockhostIDCall) DoAndReturn(f func() p2p.Peer) *MockhostIDCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockhostIDCall) Return added in v1.4.0

func (c *MockhostIDCall) Return(arg0 p2p.Peer) *MockhostIDCall

Return rewrite *gomock.Call.Return

type MockhostMockRecorder

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

MockhostMockRecorder is the mock recorder for Mockhost.

func (*MockhostMockRecorder) ID

ID indicates an expected call of ID.

type Mockrequester

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

Mockrequester is a mock of requester interface.

func NewMockrequester

func NewMockrequester(ctrl *gomock.Controller) *Mockrequester

NewMockrequester creates a new mock instance.

func (*Mockrequester) EXPECT

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

func (*Mockrequester) Request

func (m *Mockrequester) Request(arg0 context.Context, arg1 p2p.Peer, arg2 []byte, arg3 ...string) ([]byte, error)

Request mocks base method.

func (*Mockrequester) Run added in v1.3.0

func (m *Mockrequester) Run(arg0 context.Context) error

Run mocks base method.

func (*Mockrequester) StreamRequest added in v1.4.1

func (m *Mockrequester) StreamRequest(arg0 context.Context, arg1 p2p.Peer, arg2 []byte, arg3 server.StreamRequestCallback, arg4 ...string) error

StreamRequest mocks base method.

type MockrequesterMockRecorder

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

MockrequesterMockRecorder is the mock recorder for Mockrequester.

func (*MockrequesterMockRecorder) Request

func (mr *MockrequesterMockRecorder) Request(arg0, arg1, arg2 any, arg3 ...any) *MockrequesterRequestCall

Request indicates an expected call of Request.

func (*MockrequesterMockRecorder) Run added in v1.3.0

Run indicates an expected call of Run.

func (*MockrequesterMockRecorder) StreamRequest added in v1.4.1

func (mr *MockrequesterMockRecorder) StreamRequest(arg0, arg1, arg2, arg3 any, arg4 ...any) *MockrequesterStreamRequestCall

StreamRequest indicates an expected call of StreamRequest.

type MockrequesterRequestCall added in v1.4.0

type MockrequesterRequestCall struct {
	*gomock.Call
}

MockrequesterRequestCall wrap *gomock.Call

func (*MockrequesterRequestCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockrequesterRequestCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockrequesterRequestCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockrequesterRunCall added in v1.4.0

type MockrequesterRunCall struct {
	*gomock.Call
}

MockrequesterRunCall wrap *gomock.Call

func (*MockrequesterRunCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockrequesterRunCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockrequesterRunCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockrequesterStreamRequestCall added in v1.4.1

type MockrequesterStreamRequestCall struct {
	*gomock.Call
}

MockrequesterStreamRequestCall wrap *gomock.Call

func (*MockrequesterStreamRequestCall) Do added in v1.4.1

Do rewrite *gomock.Call.Do

func (*MockrequesterStreamRequestCall) DoAndReturn added in v1.4.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockrequesterStreamRequestCall) Return added in v1.4.1

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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