package tmock
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
trillian "github.com/google/trillian"
)
type MockTrillianLogServer struct {
ctrl *gomock.Controller
recorder *MockTrillianLogServerMockRecorder
}
type MockTrillianLogServerMockRecorder struct {
mock *MockTrillianLogServer
}
func NewMockTrillianLogServer(ctrl *gomock.Controller) *MockTrillianLogServer {
mock := &MockTrillianLogServer{ctrl: ctrl}
mock.recorder = &MockTrillianLogServerMockRecorder{mock}
return mock
}
func (m *MockTrillianLogServer) EXPECT() *MockTrillianLogServerMockRecorder {
return m.recorder
}
func (m *MockTrillianLogServer) AddSequencedLeaves(arg0 context.Context, arg1 *trillian.AddSequencedLeavesRequest) (*trillian.AddSequencedLeavesResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddSequencedLeaves", arg0, arg1)
ret0, _ := ret[0].(*trillian.AddSequencedLeavesResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockTrillianLogServerMockRecorder) AddSequencedLeaves(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSequencedLeaves", reflect.TypeOf((*MockTrillianLogServer)(nil).AddSequencedLeaves), arg0, arg1)
}
func (m *MockTrillianLogServer) GetConsistencyProof(arg0 context.Context, arg1 *trillian.GetConsistencyProofRequest) (*trillian.GetConsistencyProofResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetConsistencyProof", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetConsistencyProofResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockTrillianLogServerMockRecorder) GetConsistencyProof(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConsistencyProof", reflect.TypeOf((*MockTrillianLogServer)(nil).GetConsistencyProof), arg0, arg1)
}
func (m *MockTrillianLogServer) GetEntryAndProof(arg0 context.Context, arg1 *trillian.GetEntryAndProofRequest) (*trillian.GetEntryAndProofResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEntryAndProof", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetEntryAndProofResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockTrillianLogServerMockRecorder) GetEntryAndProof(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEntryAndProof", reflect.TypeOf((*MockTrillianLogServer)(nil).GetEntryAndProof), arg0, arg1)
}
func (m *MockTrillianLogServer) GetInclusionProof(arg0 context.Context, arg1 *trillian.GetInclusionProofRequest) (*trillian.GetInclusionProofResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetInclusionProof", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetInclusionProofResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockTrillianLogServerMockRecorder) GetInclusionProof(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInclusionProof", reflect.TypeOf((*MockTrillianLogServer)(nil).GetInclusionProof), arg0, arg1)
}
func (m *MockTrillianLogServer) GetInclusionProofByHash(arg0 context.Context, arg1 *trillian.GetInclusionProofByHashRequest) (*trillian.GetInclusionProofByHashResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetInclusionProofByHash", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetInclusionProofByHashResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockTrillianLogServerMockRecorder) GetInclusionProofByHash(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInclusionProofByHash", reflect.TypeOf((*MockTrillianLogServer)(nil).GetInclusionProofByHash), arg0, arg1)
}
func (m *MockTrillianLogServer) GetLatestSignedLogRoot(arg0 context.Context, arg1 *trillian.GetLatestSignedLogRootRequest) (*trillian.GetLatestSignedLogRootResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLatestSignedLogRoot", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetLatestSignedLogRootResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockTrillianLogServerMockRecorder) GetLatestSignedLogRoot(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestSignedLogRoot", reflect.TypeOf((*MockTrillianLogServer)(nil).GetLatestSignedLogRoot), arg0, arg1)
}
func (m *MockTrillianLogServer) GetLeavesByRange(arg0 context.Context, arg1 *trillian.GetLeavesByRangeRequest) (*trillian.GetLeavesByRangeResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLeavesByRange", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetLeavesByRangeResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockTrillianLogServerMockRecorder) GetLeavesByRange(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByRange", reflect.TypeOf((*MockTrillianLogServer)(nil).GetLeavesByRange), arg0, arg1)
}
func (m *MockTrillianLogServer) InitLog(arg0 context.Context, arg1 *trillian.InitLogRequest) (*trillian.InitLogResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InitLog", arg0, arg1)
ret0, _ := ret[0].(*trillian.InitLogResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockTrillianLogServerMockRecorder) InitLog(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitLog", reflect.TypeOf((*MockTrillianLogServer)(nil).InitLog), arg0, arg1)
}
func (m *MockTrillianLogServer) QueueLeaf(arg0 context.Context, arg1 *trillian.QueueLeafRequest) (*trillian.QueueLeafResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "QueueLeaf", arg0, arg1)
ret0, _ := ret[0].(*trillian.QueueLeafResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockTrillianLogServerMockRecorder) QueueLeaf(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueLeaf", reflect.TypeOf((*MockTrillianLogServer)(nil).QueueLeaf), arg0, arg1)
}