github.com/bartle-stripe/trillian@v1.2.1/testonly/tmock/mock_log_server.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/google/trillian (interfaces: TrillianLogServer) 3 4 // Package tmock is a generated GoMock package. 5 package tmock 6 7 import ( 8 context "context" 9 gomock "github.com/golang/mock/gomock" 10 trillian "github.com/google/trillian" 11 reflect "reflect" 12 ) 13 14 // MockTrillianLogServer is a mock of TrillianLogServer interface 15 type MockTrillianLogServer struct { 16 ctrl *gomock.Controller 17 recorder *MockTrillianLogServerMockRecorder 18 } 19 20 // MockTrillianLogServerMockRecorder is the mock recorder for MockTrillianLogServer 21 type MockTrillianLogServerMockRecorder struct { 22 mock *MockTrillianLogServer 23 } 24 25 // NewMockTrillianLogServer creates a new mock instance 26 func NewMockTrillianLogServer(ctrl *gomock.Controller) *MockTrillianLogServer { 27 mock := &MockTrillianLogServer{ctrl: ctrl} 28 mock.recorder = &MockTrillianLogServerMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockTrillianLogServer) EXPECT() *MockTrillianLogServerMockRecorder { 34 return m.recorder 35 } 36 37 // AddSequencedLeaf mocks base method 38 func (m *MockTrillianLogServer) AddSequencedLeaf(arg0 context.Context, arg1 *trillian.AddSequencedLeafRequest) (*trillian.AddSequencedLeafResponse, error) { 39 ret := m.ctrl.Call(m, "AddSequencedLeaf", arg0, arg1) 40 ret0, _ := ret[0].(*trillian.AddSequencedLeafResponse) 41 ret1, _ := ret[1].(error) 42 return ret0, ret1 43 } 44 45 // AddSequencedLeaf indicates an expected call of AddSequencedLeaf 46 func (mr *MockTrillianLogServerMockRecorder) AddSequencedLeaf(arg0, arg1 interface{}) *gomock.Call { 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSequencedLeaf", reflect.TypeOf((*MockTrillianLogServer)(nil).AddSequencedLeaf), arg0, arg1) 48 } 49 50 // AddSequencedLeaves mocks base method 51 func (m *MockTrillianLogServer) AddSequencedLeaves(arg0 context.Context, arg1 *trillian.AddSequencedLeavesRequest) (*trillian.AddSequencedLeavesResponse, error) { 52 ret := m.ctrl.Call(m, "AddSequencedLeaves", arg0, arg1) 53 ret0, _ := ret[0].(*trillian.AddSequencedLeavesResponse) 54 ret1, _ := ret[1].(error) 55 return ret0, ret1 56 } 57 58 // AddSequencedLeaves indicates an expected call of AddSequencedLeaves 59 func (mr *MockTrillianLogServerMockRecorder) AddSequencedLeaves(arg0, arg1 interface{}) *gomock.Call { 60 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSequencedLeaves", reflect.TypeOf((*MockTrillianLogServer)(nil).AddSequencedLeaves), arg0, arg1) 61 } 62 63 // GetConsistencyProof mocks base method 64 func (m *MockTrillianLogServer) GetConsistencyProof(arg0 context.Context, arg1 *trillian.GetConsistencyProofRequest) (*trillian.GetConsistencyProofResponse, error) { 65 ret := m.ctrl.Call(m, "GetConsistencyProof", arg0, arg1) 66 ret0, _ := ret[0].(*trillian.GetConsistencyProofResponse) 67 ret1, _ := ret[1].(error) 68 return ret0, ret1 69 } 70 71 // GetConsistencyProof indicates an expected call of GetConsistencyProof 72 func (mr *MockTrillianLogServerMockRecorder) GetConsistencyProof(arg0, arg1 interface{}) *gomock.Call { 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConsistencyProof", reflect.TypeOf((*MockTrillianLogServer)(nil).GetConsistencyProof), arg0, arg1) 74 } 75 76 // GetEntryAndProof mocks base method 77 func (m *MockTrillianLogServer) GetEntryAndProof(arg0 context.Context, arg1 *trillian.GetEntryAndProofRequest) (*trillian.GetEntryAndProofResponse, error) { 78 ret := m.ctrl.Call(m, "GetEntryAndProof", arg0, arg1) 79 ret0, _ := ret[0].(*trillian.GetEntryAndProofResponse) 80 ret1, _ := ret[1].(error) 81 return ret0, ret1 82 } 83 84 // GetEntryAndProof indicates an expected call of GetEntryAndProof 85 func (mr *MockTrillianLogServerMockRecorder) GetEntryAndProof(arg0, arg1 interface{}) *gomock.Call { 86 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEntryAndProof", reflect.TypeOf((*MockTrillianLogServer)(nil).GetEntryAndProof), arg0, arg1) 87 } 88 89 // GetInclusionProof mocks base method 90 func (m *MockTrillianLogServer) GetInclusionProof(arg0 context.Context, arg1 *trillian.GetInclusionProofRequest) (*trillian.GetInclusionProofResponse, error) { 91 ret := m.ctrl.Call(m, "GetInclusionProof", arg0, arg1) 92 ret0, _ := ret[0].(*trillian.GetInclusionProofResponse) 93 ret1, _ := ret[1].(error) 94 return ret0, ret1 95 } 96 97 // GetInclusionProof indicates an expected call of GetInclusionProof 98 func (mr *MockTrillianLogServerMockRecorder) GetInclusionProof(arg0, arg1 interface{}) *gomock.Call { 99 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInclusionProof", reflect.TypeOf((*MockTrillianLogServer)(nil).GetInclusionProof), arg0, arg1) 100 } 101 102 // GetInclusionProofByHash mocks base method 103 func (m *MockTrillianLogServer) GetInclusionProofByHash(arg0 context.Context, arg1 *trillian.GetInclusionProofByHashRequest) (*trillian.GetInclusionProofByHashResponse, error) { 104 ret := m.ctrl.Call(m, "GetInclusionProofByHash", arg0, arg1) 105 ret0, _ := ret[0].(*trillian.GetInclusionProofByHashResponse) 106 ret1, _ := ret[1].(error) 107 return ret0, ret1 108 } 109 110 // GetInclusionProofByHash indicates an expected call of GetInclusionProofByHash 111 func (mr *MockTrillianLogServerMockRecorder) GetInclusionProofByHash(arg0, arg1 interface{}) *gomock.Call { 112 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInclusionProofByHash", reflect.TypeOf((*MockTrillianLogServer)(nil).GetInclusionProofByHash), arg0, arg1) 113 } 114 115 // GetLatestSignedLogRoot mocks base method 116 func (m *MockTrillianLogServer) GetLatestSignedLogRoot(arg0 context.Context, arg1 *trillian.GetLatestSignedLogRootRequest) (*trillian.GetLatestSignedLogRootResponse, error) { 117 ret := m.ctrl.Call(m, "GetLatestSignedLogRoot", arg0, arg1) 118 ret0, _ := ret[0].(*trillian.GetLatestSignedLogRootResponse) 119 ret1, _ := ret[1].(error) 120 return ret0, ret1 121 } 122 123 // GetLatestSignedLogRoot indicates an expected call of GetLatestSignedLogRoot 124 func (mr *MockTrillianLogServerMockRecorder) GetLatestSignedLogRoot(arg0, arg1 interface{}) *gomock.Call { 125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestSignedLogRoot", reflect.TypeOf((*MockTrillianLogServer)(nil).GetLatestSignedLogRoot), arg0, arg1) 126 } 127 128 // GetLeavesByHash mocks base method 129 func (m *MockTrillianLogServer) GetLeavesByHash(arg0 context.Context, arg1 *trillian.GetLeavesByHashRequest) (*trillian.GetLeavesByHashResponse, error) { 130 ret := m.ctrl.Call(m, "GetLeavesByHash", arg0, arg1) 131 ret0, _ := ret[0].(*trillian.GetLeavesByHashResponse) 132 ret1, _ := ret[1].(error) 133 return ret0, ret1 134 } 135 136 // GetLeavesByHash indicates an expected call of GetLeavesByHash 137 func (mr *MockTrillianLogServerMockRecorder) GetLeavesByHash(arg0, arg1 interface{}) *gomock.Call { 138 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByHash", reflect.TypeOf((*MockTrillianLogServer)(nil).GetLeavesByHash), arg0, arg1) 139 } 140 141 // GetLeavesByIndex mocks base method 142 func (m *MockTrillianLogServer) GetLeavesByIndex(arg0 context.Context, arg1 *trillian.GetLeavesByIndexRequest) (*trillian.GetLeavesByIndexResponse, error) { 143 ret := m.ctrl.Call(m, "GetLeavesByIndex", arg0, arg1) 144 ret0, _ := ret[0].(*trillian.GetLeavesByIndexResponse) 145 ret1, _ := ret[1].(error) 146 return ret0, ret1 147 } 148 149 // GetLeavesByIndex indicates an expected call of GetLeavesByIndex 150 func (mr *MockTrillianLogServerMockRecorder) GetLeavesByIndex(arg0, arg1 interface{}) *gomock.Call { 151 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByIndex", reflect.TypeOf((*MockTrillianLogServer)(nil).GetLeavesByIndex), arg0, arg1) 152 } 153 154 // GetLeavesByRange mocks base method 155 func (m *MockTrillianLogServer) GetLeavesByRange(arg0 context.Context, arg1 *trillian.GetLeavesByRangeRequest) (*trillian.GetLeavesByRangeResponse, error) { 156 ret := m.ctrl.Call(m, "GetLeavesByRange", arg0, arg1) 157 ret0, _ := ret[0].(*trillian.GetLeavesByRangeResponse) 158 ret1, _ := ret[1].(error) 159 return ret0, ret1 160 } 161 162 // GetLeavesByRange indicates an expected call of GetLeavesByRange 163 func (mr *MockTrillianLogServerMockRecorder) GetLeavesByRange(arg0, arg1 interface{}) *gomock.Call { 164 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByRange", reflect.TypeOf((*MockTrillianLogServer)(nil).GetLeavesByRange), arg0, arg1) 165 } 166 167 // GetSequencedLeafCount mocks base method 168 func (m *MockTrillianLogServer) GetSequencedLeafCount(arg0 context.Context, arg1 *trillian.GetSequencedLeafCountRequest) (*trillian.GetSequencedLeafCountResponse, error) { 169 ret := m.ctrl.Call(m, "GetSequencedLeafCount", arg0, arg1) 170 ret0, _ := ret[0].(*trillian.GetSequencedLeafCountResponse) 171 ret1, _ := ret[1].(error) 172 return ret0, ret1 173 } 174 175 // GetSequencedLeafCount indicates an expected call of GetSequencedLeafCount 176 func (mr *MockTrillianLogServerMockRecorder) GetSequencedLeafCount(arg0, arg1 interface{}) *gomock.Call { 177 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSequencedLeafCount", reflect.TypeOf((*MockTrillianLogServer)(nil).GetSequencedLeafCount), arg0, arg1) 178 } 179 180 // InitLog mocks base method 181 func (m *MockTrillianLogServer) InitLog(arg0 context.Context, arg1 *trillian.InitLogRequest) (*trillian.InitLogResponse, error) { 182 ret := m.ctrl.Call(m, "InitLog", arg0, arg1) 183 ret0, _ := ret[0].(*trillian.InitLogResponse) 184 ret1, _ := ret[1].(error) 185 return ret0, ret1 186 } 187 188 // InitLog indicates an expected call of InitLog 189 func (mr *MockTrillianLogServerMockRecorder) InitLog(arg0, arg1 interface{}) *gomock.Call { 190 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitLog", reflect.TypeOf((*MockTrillianLogServer)(nil).InitLog), arg0, arg1) 191 } 192 193 // QueueLeaf mocks base method 194 func (m *MockTrillianLogServer) QueueLeaf(arg0 context.Context, arg1 *trillian.QueueLeafRequest) (*trillian.QueueLeafResponse, error) { 195 ret := m.ctrl.Call(m, "QueueLeaf", arg0, arg1) 196 ret0, _ := ret[0].(*trillian.QueueLeafResponse) 197 ret1, _ := ret[1].(error) 198 return ret0, ret1 199 } 200 201 // QueueLeaf indicates an expected call of QueueLeaf 202 func (mr *MockTrillianLogServerMockRecorder) QueueLeaf(arg0, arg1 interface{}) *gomock.Call { 203 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueLeaf", reflect.TypeOf((*MockTrillianLogServer)(nil).QueueLeaf), arg0, arg1) 204 } 205 206 // QueueLeaves mocks base method 207 func (m *MockTrillianLogServer) QueueLeaves(arg0 context.Context, arg1 *trillian.QueueLeavesRequest) (*trillian.QueueLeavesResponse, error) { 208 ret := m.ctrl.Call(m, "QueueLeaves", arg0, arg1) 209 ret0, _ := ret[0].(*trillian.QueueLeavesResponse) 210 ret1, _ := ret[1].(error) 211 return ret0, ret1 212 } 213 214 // QueueLeaves indicates an expected call of QueueLeaves 215 func (mr *MockTrillianLogServerMockRecorder) QueueLeaves(arg0, arg1 interface{}) *gomock.Call { 216 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueLeaves", reflect.TypeOf((*MockTrillianLogServer)(nil).QueueLeaves), arg0, arg1) 217 }