mocks

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

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 MockLog added in v0.7.0

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

MockLog is a mock of Log interface.

func NewMockLog added in v0.7.0

func NewMockLog(ctrl *gomock.Controller) *MockLog

NewMockLog creates a new mock instance.

func (*MockLog) AddLeaf added in v0.7.0

func (m *MockLog) AddLeaf(arg0 context.Context, arg1 requests.Leaf, arg2 *token.SubmitHeader) (bool, error)

AddLeaf mocks base method.

func (*MockLog) EXPECT added in v0.7.0

func (m *MockLog) EXPECT() *MockLogMockRecorder

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

func (*MockLog) GetConsistencyProof added in v0.7.0

func (m *MockLog) GetConsistencyProof(arg0 context.Context, arg1 requests.ConsistencyProof) (types.ConsistencyProof, error)

GetConsistencyProof mocks base method.

func (*MockLog) GetInclusionProof added in v0.7.0

func (m *MockLog) GetInclusionProof(arg0 context.Context, arg1 requests.InclusionProof) (types.InclusionProof, error)

GetInclusionProof mocks base method.

func (*MockLog) GetLeaves added in v0.7.0

func (m *MockLog) GetLeaves(arg0 context.Context, arg1 requests.Leaves) ([]types.Leaf, error)

GetLeaves mocks base method.

func (*MockLog) GetTreeHead added in v0.7.0

func (m *MockLog) GetTreeHead(arg0 context.Context) (types.CosignedTreeHead, error)

GetTreeHead mocks base method.

type MockLogMockRecorder added in v0.7.0

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

MockLogMockRecorder is the mock recorder for MockLog.

func (*MockLogMockRecorder) AddLeaf added in v0.7.0

func (mr *MockLogMockRecorder) AddLeaf(arg0, arg1, arg2 interface{}) *gomock.Call

AddLeaf indicates an expected call of AddLeaf.

func (*MockLogMockRecorder) GetConsistencyProof added in v0.7.0

func (mr *MockLogMockRecorder) GetConsistencyProof(arg0, arg1 interface{}) *gomock.Call

GetConsistencyProof indicates an expected call of GetConsistencyProof.

func (*MockLogMockRecorder) GetInclusionProof added in v0.7.0

func (mr *MockLogMockRecorder) GetInclusionProof(arg0, arg1 interface{}) *gomock.Call

GetInclusionProof indicates an expected call of GetInclusionProof.

func (*MockLogMockRecorder) GetLeaves added in v0.7.0

func (mr *MockLogMockRecorder) GetLeaves(arg0, arg1 interface{}) *gomock.Call

GetLeaves indicates an expected call of GetLeaves.

func (*MockLogMockRecorder) GetTreeHead added in v0.7.0

func (mr *MockLogMockRecorder) GetTreeHead(arg0 interface{}) *gomock.Call

GetTreeHead indicates an expected call of GetTreeHead.

type MockMetrics added in v0.5.0

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

MockMetrics is a mock of Metrics interface.

func NewMockMetrics added in v0.5.0

func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics

NewMockMetrics creates a new mock instance.

func (*MockMetrics) EXPECT added in v0.5.0

func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder

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

func (*MockMetrics) OnRequest added in v0.5.0

func (m *MockMetrics) OnRequest(arg0 string)

OnRequest mocks base method.

func (*MockMetrics) OnResponse added in v0.5.0

func (m *MockMetrics) OnResponse(arg0 string, arg1 int, arg2 time.Duration)

OnResponse mocks base method.

type MockMetricsMockRecorder added in v0.5.0

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

MockMetricsMockRecorder is the mock recorder for MockMetrics.

func (*MockMetricsMockRecorder) OnRequest added in v0.5.0

func (mr *MockMetricsMockRecorder) OnRequest(arg0 interface{}) *gomock.Call

OnRequest indicates an expected call of OnRequest.

func (*MockMetricsMockRecorder) OnResponse added in v0.5.0

func (mr *MockMetricsMockRecorder) OnResponse(arg0, arg1, arg2 interface{}) *gomock.Call

OnResponse indicates an expected call of OnResponse.

type MockSecondary added in v0.7.0

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

MockSecondary is a mock of Secondary interface.

func NewMockSecondary added in v0.7.0

func NewMockSecondary(ctrl *gomock.Controller) *MockSecondary

NewMockSecondary creates a new mock instance.

func (*MockSecondary) EXPECT added in v0.7.0

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

func (*MockSecondary) GetSecondaryTreeHead added in v0.7.0

func (m *MockSecondary) GetSecondaryTreeHead(arg0 context.Context) (types.SignedTreeHead, error)

GetSecondaryTreeHead mocks base method.

type MockSecondaryMockRecorder added in v0.7.0

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

MockSecondaryMockRecorder is the mock recorder for MockSecondary.

func (*MockSecondaryMockRecorder) GetSecondaryTreeHead added in v0.7.0

func (mr *MockSecondaryMockRecorder) GetSecondaryTreeHead(arg0 interface{}) *gomock.Call

GetSecondaryTreeHead indicates an expected call of GetSecondaryTreeHead.

type MockWitness added in v0.7.0

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

MockWitness is a mock of Witness interface.

func NewMockWitness added in v0.7.0

func NewMockWitness(ctrl *gomock.Controller) *MockWitness

NewMockWitness creates a new mock instance.

func (*MockWitness) AddCheckpoint added in v0.9.1

AddCheckpoint mocks base method.

func (*MockWitness) EXPECT added in v0.7.0

func (m *MockWitness) EXPECT() *MockWitnessMockRecorder

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

type MockWitnessMockRecorder added in v0.7.0

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

MockWitnessMockRecorder is the mock recorder for MockWitness.

func (*MockWitnessMockRecorder) AddCheckpoint added in v0.9.1

func (mr *MockWitnessMockRecorder) AddCheckpoint(arg0, arg1 interface{}) *gomock.Call

AddCheckpoint indicates an expected call of AddCheckpoint.

Jump to

Keyboard shortcuts

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