Documentation ¶
Overview ¶
Package db is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) AddLeaf(arg0 context.Context, arg1 *requests.Leaf, arg2 uint64) (bool, error)
- func (m *MockClient) AddSequencedLeaves(arg0 context.Context, arg1 types.Leaves, arg2 int64) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetConsistencyProof(arg0 context.Context, arg1 *requests.ConsistencyProof) (*types.ConsistencyProof, error)
- func (m *MockClient) GetInclusionProof(arg0 context.Context, arg1 *requests.InclusionProof) (*types.InclusionProof, error)
- func (m *MockClient) GetLeaves(arg0 context.Context, arg1 *requests.Leaves) (*types.Leaves, error)
- func (m *MockClient) GetTreeHead(arg0 context.Context) (*types.TreeHead, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) AddLeaf(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) AddSequencedLeaves(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetConsistencyProof(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetInclusionProof(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetLeaves(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetTreeHead(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) AddLeaf ¶
AddLeaf mocks base method.
func (*MockClient) AddSequencedLeaves ¶
AddSequencedLeaves mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetConsistencyProof ¶
func (m *MockClient) GetConsistencyProof(arg0 context.Context, arg1 *requests.ConsistencyProof) (*types.ConsistencyProof, error)
GetConsistencyProof mocks base method.
func (*MockClient) GetInclusionProof ¶
func (m *MockClient) GetInclusionProof(arg0 context.Context, arg1 *requests.InclusionProof) (*types.InclusionProof, error)
GetInclusionProof mocks base method.
func (*MockClient) GetLeaves ¶
GetLeaves mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) AddLeaf ¶
func (mr *MockClientMockRecorder) AddLeaf(arg0, arg1, arg2 interface{}) *gomock.Call
AddLeaf indicates an expected call of AddLeaf.
func (*MockClientMockRecorder) AddSequencedLeaves ¶
func (mr *MockClientMockRecorder) AddSequencedLeaves(arg0, arg1, arg2 interface{}) *gomock.Call
AddSequencedLeaves indicates an expected call of AddSequencedLeaves.
func (*MockClientMockRecorder) GetConsistencyProof ¶
func (mr *MockClientMockRecorder) GetConsistencyProof(arg0, arg1 interface{}) *gomock.Call
GetConsistencyProof indicates an expected call of GetConsistencyProof.
func (*MockClientMockRecorder) GetInclusionProof ¶
func (mr *MockClientMockRecorder) GetInclusionProof(arg0, arg1 interface{}) *gomock.Call
GetInclusionProof indicates an expected call of GetInclusionProof.
func (*MockClientMockRecorder) GetLeaves ¶
func (mr *MockClientMockRecorder) GetLeaves(arg0, arg1 interface{}) *gomock.Call
GetLeaves indicates an expected call of GetLeaves.
func (*MockClientMockRecorder) GetTreeHead ¶
func (mr *MockClientMockRecorder) GetTreeHead(arg0 interface{}) *gomock.Call
GetTreeHead indicates an expected call of GetTreeHead.