mocks

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelMock

type ChannelMock struct {
	mock.Mock
}

ChannelMock is an autogenerated mock type for the AggregatorService_ChannelServer type

func NewChannelMock

func NewChannelMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChannelMock

NewChannelMock creates a new instance of ChannelMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChannelMock) Context

func (_m *ChannelMock) Context() context.Context

Context provides a mock function with no fields

func (*ChannelMock) EXPECT added in v0.5.1

func (_m *ChannelMock) EXPECT() *ChannelMock_Expecter

func (*ChannelMock) Recv

func (_m *ChannelMock) Recv() (*prover.ProverMessage, error)

Recv provides a mock function with no fields

func (*ChannelMock) RecvMsg

func (_m *ChannelMock) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*ChannelMock) Send

func (_m *ChannelMock) Send(_a0 *prover.AggregatorMessage) error

Send provides a mock function with given fields: _a0

func (*ChannelMock) SendHeader

func (_m *ChannelMock) SendHeader(_a0 metadata.MD) error

SendHeader provides a mock function with given fields: _a0

func (*ChannelMock) SendMsg

func (_m *ChannelMock) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*ChannelMock) SetHeader

func (_m *ChannelMock) SetHeader(_a0 metadata.MD) error

SetHeader provides a mock function with given fields: _a0

func (*ChannelMock) SetTrailer

func (_m *ChannelMock) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type ChannelMock_Context_Call added in v0.5.1

type ChannelMock_Context_Call struct {
	*mock.Call
}

ChannelMock_Context_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Context'

func (*ChannelMock_Context_Call) Return added in v0.5.1

func (*ChannelMock_Context_Call) Run added in v0.5.1

func (*ChannelMock_Context_Call) RunAndReturn added in v0.5.1

func (_c *ChannelMock_Context_Call) RunAndReturn(run func() context.Context) *ChannelMock_Context_Call

type ChannelMock_Expecter added in v0.5.1

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

func (*ChannelMock_Expecter) Context added in v0.5.1

Context is a helper method to define mock.On call

func (*ChannelMock_Expecter) Recv added in v0.5.1

Recv is a helper method to define mock.On call

func (*ChannelMock_Expecter) RecvMsg added in v0.5.1

func (_e *ChannelMock_Expecter) RecvMsg(m interface{}) *ChannelMock_RecvMsg_Call

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*ChannelMock_Expecter) Send added in v0.5.1

func (_e *ChannelMock_Expecter) Send(_a0 interface{}) *ChannelMock_Send_Call

Send is a helper method to define mock.On call

  • _a0 *prover.AggregatorMessage

func (*ChannelMock_Expecter) SendHeader added in v0.5.1

func (_e *ChannelMock_Expecter) SendHeader(_a0 interface{}) *ChannelMock_SendHeader_Call

SendHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*ChannelMock_Expecter) SendMsg added in v0.5.1

func (_e *ChannelMock_Expecter) SendMsg(m interface{}) *ChannelMock_SendMsg_Call

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*ChannelMock_Expecter) SetHeader added in v0.5.1

func (_e *ChannelMock_Expecter) SetHeader(_a0 interface{}) *ChannelMock_SetHeader_Call

SetHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*ChannelMock_Expecter) SetTrailer added in v0.5.1

func (_e *ChannelMock_Expecter) SetTrailer(_a0 interface{}) *ChannelMock_SetTrailer_Call

SetTrailer is a helper method to define mock.On call

  • _a0 metadata.MD

type ChannelMock_RecvMsg_Call added in v0.5.1

type ChannelMock_RecvMsg_Call struct {
	*mock.Call
}

ChannelMock_RecvMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecvMsg'

func (*ChannelMock_RecvMsg_Call) Return added in v0.5.1

func (*ChannelMock_RecvMsg_Call) Run added in v0.5.1

func (_c *ChannelMock_RecvMsg_Call) Run(run func(m interface{})) *ChannelMock_RecvMsg_Call

func (*ChannelMock_RecvMsg_Call) RunAndReturn added in v0.5.1

func (_c *ChannelMock_RecvMsg_Call) RunAndReturn(run func(interface{}) error) *ChannelMock_RecvMsg_Call

type ChannelMock_Recv_Call added in v0.5.1

type ChannelMock_Recv_Call struct {
	*mock.Call
}

ChannelMock_Recv_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Recv'

func (*ChannelMock_Recv_Call) Return added in v0.5.1

func (*ChannelMock_Recv_Call) Run added in v0.5.1

func (_c *ChannelMock_Recv_Call) Run(run func()) *ChannelMock_Recv_Call

func (*ChannelMock_Recv_Call) RunAndReturn added in v0.5.1

func (_c *ChannelMock_Recv_Call) RunAndReturn(run func() (*prover.ProverMessage, error)) *ChannelMock_Recv_Call

type ChannelMock_SendHeader_Call added in v0.5.1

type ChannelMock_SendHeader_Call struct {
	*mock.Call
}

ChannelMock_SendHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendHeader'

func (*ChannelMock_SendHeader_Call) Return added in v0.5.1

func (*ChannelMock_SendHeader_Call) Run added in v0.5.1

func (*ChannelMock_SendHeader_Call) RunAndReturn added in v0.5.1

type ChannelMock_SendMsg_Call added in v0.5.1

type ChannelMock_SendMsg_Call struct {
	*mock.Call
}

ChannelMock_SendMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMsg'

func (*ChannelMock_SendMsg_Call) Return added in v0.5.1

func (*ChannelMock_SendMsg_Call) Run added in v0.5.1

func (_c *ChannelMock_SendMsg_Call) Run(run func(m interface{})) *ChannelMock_SendMsg_Call

func (*ChannelMock_SendMsg_Call) RunAndReturn added in v0.5.1

func (_c *ChannelMock_SendMsg_Call) RunAndReturn(run func(interface{}) error) *ChannelMock_SendMsg_Call

type ChannelMock_Send_Call added in v0.5.1

type ChannelMock_Send_Call struct {
	*mock.Call
}

ChannelMock_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'

func (*ChannelMock_Send_Call) Return added in v0.5.1

func (*ChannelMock_Send_Call) Run added in v0.5.1

func (*ChannelMock_Send_Call) RunAndReturn added in v0.5.1

type ChannelMock_SetHeader_Call added in v0.5.1

type ChannelMock_SetHeader_Call struct {
	*mock.Call
}

ChannelMock_SetHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHeader'

func (*ChannelMock_SetHeader_Call) Return added in v0.5.1

func (*ChannelMock_SetHeader_Call) Run added in v0.5.1

func (*ChannelMock_SetHeader_Call) RunAndReturn added in v0.5.1

type ChannelMock_SetTrailer_Call added in v0.5.1

type ChannelMock_SetTrailer_Call struct {
	*mock.Call
}

ChannelMock_SetTrailer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTrailer'

func (*ChannelMock_SetTrailer_Call) Return added in v0.5.1

func (*ChannelMock_SetTrailer_Call) Run added in v0.5.1

func (*ChannelMock_SetTrailer_Call) RunAndReturn added in v0.5.1

Jump to

Keyboard shortcuts

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