Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockconservativeState
- type MockconservativeStateMockRecorder
- type MockconservativeStateSelectProposalTXsCall
- func (c *MockconservativeStateSelectProposalTXsCall) Do(f func(types.LayerID, int) []types.TransactionID) *MockconservativeStateSelectProposalTXsCall
- func (c *MockconservativeStateSelectProposalTXsCall) DoAndReturn(f func(types.LayerID, int) []types.TransactionID) *MockconservativeStateSelectProposalTXsCall
- func (c *MockconservativeStateSelectProposalTXsCall) Return(arg0 []types.TransactionID) *MockconservativeStateSelectProposalTXsCall
- type MocklayerClock
- type MocklayerClockAwaitLayerCall
- func (c *MocklayerClockAwaitLayerCall) Do(f func(types.LayerID) <-chan struct{}) *MocklayerClockAwaitLayerCall
- func (c *MocklayerClockAwaitLayerCall) DoAndReturn(f func(types.LayerID) <-chan struct{}) *MocklayerClockAwaitLayerCall
- func (c *MocklayerClockAwaitLayerCall) Return(arg0 <-chan struct{}) *MocklayerClockAwaitLayerCall
- type MocklayerClockCurrentLayerCall
- func (c *MocklayerClockCurrentLayerCall) Do(f func() types.LayerID) *MocklayerClockCurrentLayerCall
- func (c *MocklayerClockCurrentLayerCall) DoAndReturn(f func() types.LayerID) *MocklayerClockCurrentLayerCall
- func (c *MocklayerClockCurrentLayerCall) Return(arg0 types.LayerID) *MocklayerClockCurrentLayerCall
- type MocklayerClockLayerToTimeCall
- func (c *MocklayerClockLayerToTimeCall) Do(f func(types.LayerID) time.Time) *MocklayerClockLayerToTimeCall
- func (c *MocklayerClockLayerToTimeCall) DoAndReturn(f func(types.LayerID) time.Time) *MocklayerClockLayerToTimeCall
- func (c *MocklayerClockLayerToTimeCall) Return(arg0 time.Time) *MocklayerClockLayerToTimeCall
- type MocklayerClockMockRecorder
- type Mockmesh
- type MockmeshGetMalfeasanceProofCall
- func (c *MockmeshGetMalfeasanceProofCall) Do(f func(types.NodeID) (*types.MalfeasanceProof, error)) *MockmeshGetMalfeasanceProofCall
- func (c *MockmeshGetMalfeasanceProofCall) DoAndReturn(f func(types.NodeID) (*types.MalfeasanceProof, error)) *MockmeshGetMalfeasanceProofCall
- func (c *MockmeshGetMalfeasanceProofCall) Return(arg0 *types.MalfeasanceProof, arg1 error) *MockmeshGetMalfeasanceProofCall
- type MockmeshMockRecorder
- type MockvotesEncoder
- func (m *MockvotesEncoder) EXPECT() *MockvotesEncoderMockRecorder
- func (m *MockvotesEncoder) EncodeVotes(arg0 context.Context, arg1 ...tortoise.EncodeVotesOpts) (*types.Opinion, error)
- func (m *MockvotesEncoder) LatestComplete() types.LayerID
- func (m *MockvotesEncoder) TallyVotes(arg0 context.Context, arg1 types.LayerID)
- type MockvotesEncoderEncodeVotesCall
- func (c *MockvotesEncoderEncodeVotesCall) Do(f func(context.Context, ...tortoise.EncodeVotesOpts) (*types.Opinion, error)) *MockvotesEncoderEncodeVotesCall
- func (c *MockvotesEncoderEncodeVotesCall) DoAndReturn(f func(context.Context, ...tortoise.EncodeVotesOpts) (*types.Opinion, error)) *MockvotesEncoderEncodeVotesCall
- func (c *MockvotesEncoderEncodeVotesCall) Return(arg0 *types.Opinion, arg1 error) *MockvotesEncoderEncodeVotesCall
- type MockvotesEncoderLatestCompleteCall
- func (c *MockvotesEncoderLatestCompleteCall) Do(f func() types.LayerID) *MockvotesEncoderLatestCompleteCall
- func (c *MockvotesEncoderLatestCompleteCall) DoAndReturn(f func() types.LayerID) *MockvotesEncoderLatestCompleteCall
- func (c *MockvotesEncoderLatestCompleteCall) Return(arg0 types.LayerID) *MockvotesEncoderLatestCompleteCall
- type MockvotesEncoderMockRecorder
- type MockvotesEncoderTallyVotesCall
- func (c *MockvotesEncoderTallyVotesCall) Do(f func(context.Context, types.LayerID)) *MockvotesEncoderTallyVotesCall
- func (c *MockvotesEncoderTallyVotesCall) DoAndReturn(f func(context.Context, types.LayerID)) *MockvotesEncoderTallyVotesCall
- func (c *MockvotesEncoderTallyVotesCall) Return() *MockvotesEncoderTallyVotesCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockconservativeState ¶
type MockconservativeState struct {
// contains filtered or unexported fields
}
MockconservativeState is a mock of conservativeState interface.
func NewMockconservativeState ¶
func NewMockconservativeState(ctrl *gomock.Controller) *MockconservativeState
NewMockconservativeState creates a new mock instance.
func (*MockconservativeState) EXPECT ¶
func (m *MockconservativeState) EXPECT() *MockconservativeStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockconservativeState) SelectProposalTXs ¶
func (m *MockconservativeState) SelectProposalTXs(arg0 types.LayerID, arg1 int) []types.TransactionID
SelectProposalTXs mocks base method.
type MockconservativeStateMockRecorder ¶
type MockconservativeStateMockRecorder struct {
// contains filtered or unexported fields
}
MockconservativeStateMockRecorder is the mock recorder for MockconservativeState.
func (*MockconservativeStateMockRecorder) SelectProposalTXs ¶
func (mr *MockconservativeStateMockRecorder) SelectProposalTXs(arg0, arg1 any) *MockconservativeStateSelectProposalTXsCall
SelectProposalTXs indicates an expected call of SelectProposalTXs.
type MockconservativeStateSelectProposalTXsCall ¶ added in v1.4.0
MockconservativeStateSelectProposalTXsCall wrap *gomock.Call
func (*MockconservativeStateSelectProposalTXsCall) Do ¶ added in v1.4.0
func (c *MockconservativeStateSelectProposalTXsCall) Do(f func(types.LayerID, int) []types.TransactionID) *MockconservativeStateSelectProposalTXsCall
Do rewrite *gomock.Call.Do
func (*MockconservativeStateSelectProposalTXsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockconservativeStateSelectProposalTXsCall) DoAndReturn(f func(types.LayerID, int) []types.TransactionID) *MockconservativeStateSelectProposalTXsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockconservativeStateSelectProposalTXsCall) Return ¶ added in v1.4.0
func (c *MockconservativeStateSelectProposalTXsCall) Return(arg0 []types.TransactionID) *MockconservativeStateSelectProposalTXsCall
Return rewrite *gomock.Call.Return
type MocklayerClock ¶
type MocklayerClock struct {
// contains filtered or unexported fields
}
MocklayerClock is a mock of layerClock interface.
func NewMocklayerClock ¶
func NewMocklayerClock(ctrl *gomock.Controller) *MocklayerClock
NewMocklayerClock creates a new mock instance.
func (*MocklayerClock) AwaitLayer ¶
func (m *MocklayerClock) AwaitLayer(layerID types.LayerID) <-chan struct{}
AwaitLayer mocks base method.
func (*MocklayerClock) CurrentLayer ¶
func (m *MocklayerClock) CurrentLayer() types.LayerID
CurrentLayer mocks base method.
func (*MocklayerClock) EXPECT ¶
func (m *MocklayerClock) EXPECT() *MocklayerClockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocklayerClock) LayerToTime ¶
func (m *MocklayerClock) LayerToTime(arg0 types.LayerID) time.Time
LayerToTime mocks base method.
type MocklayerClockAwaitLayerCall ¶ added in v1.4.0
MocklayerClockAwaitLayerCall wrap *gomock.Call
func (*MocklayerClockAwaitLayerCall) Do ¶ added in v1.4.0
func (c *MocklayerClockAwaitLayerCall) Do(f func(types.LayerID) <-chan struct{}) *MocklayerClockAwaitLayerCall
Do rewrite *gomock.Call.Do
func (*MocklayerClockAwaitLayerCall) DoAndReturn ¶ added in v1.4.0
func (c *MocklayerClockAwaitLayerCall) DoAndReturn(f func(types.LayerID) <-chan struct{}) *MocklayerClockAwaitLayerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocklayerClockAwaitLayerCall) Return ¶ added in v1.4.0
func (c *MocklayerClockAwaitLayerCall) Return(arg0 <-chan struct{}) *MocklayerClockAwaitLayerCall
Return rewrite *gomock.Call.Return
type MocklayerClockCurrentLayerCall ¶ added in v1.4.0
MocklayerClockCurrentLayerCall wrap *gomock.Call
func (*MocklayerClockCurrentLayerCall) Do ¶ added in v1.4.0
func (c *MocklayerClockCurrentLayerCall) Do(f func() types.LayerID) *MocklayerClockCurrentLayerCall
Do rewrite *gomock.Call.Do
func (*MocklayerClockCurrentLayerCall) DoAndReturn ¶ added in v1.4.0
func (c *MocklayerClockCurrentLayerCall) DoAndReturn(f func() types.LayerID) *MocklayerClockCurrentLayerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocklayerClockCurrentLayerCall) Return ¶ added in v1.4.0
func (c *MocklayerClockCurrentLayerCall) Return(arg0 types.LayerID) *MocklayerClockCurrentLayerCall
Return rewrite *gomock.Call.Return
type MocklayerClockLayerToTimeCall ¶ added in v1.4.0
MocklayerClockLayerToTimeCall wrap *gomock.Call
func (*MocklayerClockLayerToTimeCall) Do ¶ added in v1.4.0
func (c *MocklayerClockLayerToTimeCall) Do(f func(types.LayerID) time.Time) *MocklayerClockLayerToTimeCall
Do rewrite *gomock.Call.Do
func (*MocklayerClockLayerToTimeCall) DoAndReturn ¶ added in v1.4.0
func (c *MocklayerClockLayerToTimeCall) DoAndReturn(f func(types.LayerID) time.Time) *MocklayerClockLayerToTimeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocklayerClockLayerToTimeCall) Return ¶ added in v1.4.0
func (c *MocklayerClockLayerToTimeCall) Return(arg0 time.Time) *MocklayerClockLayerToTimeCall
Return rewrite *gomock.Call.Return
type MocklayerClockMockRecorder ¶
type MocklayerClockMockRecorder struct {
// contains filtered or unexported fields
}
MocklayerClockMockRecorder is the mock recorder for MocklayerClock.
func (*MocklayerClockMockRecorder) AwaitLayer ¶
func (mr *MocklayerClockMockRecorder) AwaitLayer(layerID any) *MocklayerClockAwaitLayerCall
AwaitLayer indicates an expected call of AwaitLayer.
func (*MocklayerClockMockRecorder) CurrentLayer ¶
func (mr *MocklayerClockMockRecorder) CurrentLayer() *MocklayerClockCurrentLayerCall
CurrentLayer indicates an expected call of CurrentLayer.
func (*MocklayerClockMockRecorder) LayerToTime ¶
func (mr *MocklayerClockMockRecorder) LayerToTime(arg0 any) *MocklayerClockLayerToTimeCall
LayerToTime indicates an expected call of LayerToTime.
type Mockmesh ¶
type Mockmesh struct {
// contains filtered or unexported fields
}
Mockmesh is a mock of mesh interface.
func NewMockmesh ¶
func NewMockmesh(ctrl *gomock.Controller) *Mockmesh
NewMockmesh creates a new mock instance.
func (*Mockmesh) EXPECT ¶
func (m *Mockmesh) EXPECT() *MockmeshMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockmesh) GetMalfeasanceProof ¶
GetMalfeasanceProof mocks base method.
type MockmeshGetMalfeasanceProofCall ¶ added in v1.4.0
MockmeshGetMalfeasanceProofCall wrap *gomock.Call
func (*MockmeshGetMalfeasanceProofCall) Do ¶ added in v1.4.0
func (c *MockmeshGetMalfeasanceProofCall) Do(f func(types.NodeID) (*types.MalfeasanceProof, error)) *MockmeshGetMalfeasanceProofCall
Do rewrite *gomock.Call.Do
func (*MockmeshGetMalfeasanceProofCall) DoAndReturn ¶ added in v1.4.0
func (c *MockmeshGetMalfeasanceProofCall) DoAndReturn(f func(types.NodeID) (*types.MalfeasanceProof, error)) *MockmeshGetMalfeasanceProofCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockmeshGetMalfeasanceProofCall) Return ¶ added in v1.4.0
func (c *MockmeshGetMalfeasanceProofCall) Return(arg0 *types.MalfeasanceProof, arg1 error) *MockmeshGetMalfeasanceProofCall
Return rewrite *gomock.Call.Return
type MockmeshMockRecorder ¶
type MockmeshMockRecorder struct {
// contains filtered or unexported fields
}
MockmeshMockRecorder is the mock recorder for Mockmesh.
func (*MockmeshMockRecorder) GetMalfeasanceProof ¶
func (mr *MockmeshMockRecorder) GetMalfeasanceProof(nodeID any) *MockmeshGetMalfeasanceProofCall
GetMalfeasanceProof indicates an expected call of GetMalfeasanceProof.
type MockvotesEncoder ¶
type MockvotesEncoder struct {
// contains filtered or unexported fields
}
MockvotesEncoder is a mock of votesEncoder interface.
func NewMockvotesEncoder ¶
func NewMockvotesEncoder(ctrl *gomock.Controller) *MockvotesEncoder
NewMockvotesEncoder creates a new mock instance.
func (*MockvotesEncoder) EXPECT ¶
func (m *MockvotesEncoder) EXPECT() *MockvotesEncoderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockvotesEncoder) EncodeVotes ¶
func (m *MockvotesEncoder) EncodeVotes(arg0 context.Context, arg1 ...tortoise.EncodeVotesOpts) (*types.Opinion, error)
EncodeVotes mocks base method.
func (*MockvotesEncoder) LatestComplete ¶
func (m *MockvotesEncoder) LatestComplete() types.LayerID
LatestComplete mocks base method.
func (*MockvotesEncoder) TallyVotes ¶
func (m *MockvotesEncoder) TallyVotes(arg0 context.Context, arg1 types.LayerID)
TallyVotes mocks base method.
type MockvotesEncoderEncodeVotesCall ¶ added in v1.4.0
MockvotesEncoderEncodeVotesCall wrap *gomock.Call
func (*MockvotesEncoderEncodeVotesCall) Do ¶ added in v1.4.0
func (c *MockvotesEncoderEncodeVotesCall) Do(f func(context.Context, ...tortoise.EncodeVotesOpts) (*types.Opinion, error)) *MockvotesEncoderEncodeVotesCall
Do rewrite *gomock.Call.Do
func (*MockvotesEncoderEncodeVotesCall) DoAndReturn ¶ added in v1.4.0
func (c *MockvotesEncoderEncodeVotesCall) DoAndReturn(f func(context.Context, ...tortoise.EncodeVotesOpts) (*types.Opinion, error)) *MockvotesEncoderEncodeVotesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockvotesEncoderEncodeVotesCall) Return ¶ added in v1.4.0
func (c *MockvotesEncoderEncodeVotesCall) Return(arg0 *types.Opinion, arg1 error) *MockvotesEncoderEncodeVotesCall
Return rewrite *gomock.Call.Return
type MockvotesEncoderLatestCompleteCall ¶ added in v1.4.0
MockvotesEncoderLatestCompleteCall wrap *gomock.Call
func (*MockvotesEncoderLatestCompleteCall) Do ¶ added in v1.4.0
func (c *MockvotesEncoderLatestCompleteCall) Do(f func() types.LayerID) *MockvotesEncoderLatestCompleteCall
Do rewrite *gomock.Call.Do
func (*MockvotesEncoderLatestCompleteCall) DoAndReturn ¶ added in v1.4.0
func (c *MockvotesEncoderLatestCompleteCall) DoAndReturn(f func() types.LayerID) *MockvotesEncoderLatestCompleteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockvotesEncoderLatestCompleteCall) Return ¶ added in v1.4.0
func (c *MockvotesEncoderLatestCompleteCall) Return(arg0 types.LayerID) *MockvotesEncoderLatestCompleteCall
Return rewrite *gomock.Call.Return
type MockvotesEncoderMockRecorder ¶
type MockvotesEncoderMockRecorder struct {
// contains filtered or unexported fields
}
MockvotesEncoderMockRecorder is the mock recorder for MockvotesEncoder.
func (*MockvotesEncoderMockRecorder) EncodeVotes ¶
func (mr *MockvotesEncoderMockRecorder) EncodeVotes(arg0 any, arg1 ...any) *MockvotesEncoderEncodeVotesCall
EncodeVotes indicates an expected call of EncodeVotes.
func (*MockvotesEncoderMockRecorder) LatestComplete ¶
func (mr *MockvotesEncoderMockRecorder) LatestComplete() *MockvotesEncoderLatestCompleteCall
LatestComplete indicates an expected call of LatestComplete.
func (*MockvotesEncoderMockRecorder) TallyVotes ¶
func (mr *MockvotesEncoderMockRecorder) TallyVotes(arg0, arg1 any) *MockvotesEncoderTallyVotesCall
TallyVotes indicates an expected call of TallyVotes.
type MockvotesEncoderTallyVotesCall ¶ added in v1.4.0
MockvotesEncoderTallyVotesCall wrap *gomock.Call
func (*MockvotesEncoderTallyVotesCall) Do ¶ added in v1.4.0
func (c *MockvotesEncoderTallyVotesCall) Do(f func(context.Context, types.LayerID)) *MockvotesEncoderTallyVotesCall
Do rewrite *gomock.Call.Do
func (*MockvotesEncoderTallyVotesCall) DoAndReturn ¶ added in v1.4.0
func (c *MockvotesEncoderTallyVotesCall) DoAndReturn(f func(context.Context, types.LayerID)) *MockvotesEncoderTallyVotesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockvotesEncoderTallyVotesCall) Return ¶ added in v1.4.0
func (c *MockvotesEncoderTallyVotesCall) Return() *MockvotesEncoderTallyVotesCall
Return rewrite *gomock.Call.Return