github.com/prysmaticlabs/prysm@v1.4.4/shared/mock/beacon_chain_service_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/prysmaticlabs/prysm/proto/eth/v1alpha1 (interfaces: BeaconChain_StreamChainHeadServer,BeaconChain_StreamAttestationsServer,BeaconChain_StreamBlocksServer,BeaconChain_StreamValidatorsInfoServer,BeaconChain_StreamIndexedAttestationsServer) 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 v1alpha1 "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1" 13 metadata "google.golang.org/grpc/metadata" 14 ) 15 16 // MockBeaconChain_StreamChainHeadServer is a mock of BeaconChain_StreamChainHeadServer interface 17 type MockBeaconChain_StreamChainHeadServer struct { 18 ctrl *gomock.Controller 19 recorder *MockBeaconChain_StreamChainHeadServerMockRecorder 20 } 21 22 // MockBeaconChain_StreamChainHeadServerMockRecorder is the mock recorder for MockBeaconChain_StreamChainHeadServer 23 type MockBeaconChain_StreamChainHeadServerMockRecorder struct { 24 mock *MockBeaconChain_StreamChainHeadServer 25 } 26 27 // NewMockBeaconChain_StreamChainHeadServer creates a new mock instance 28 func NewMockBeaconChain_StreamChainHeadServer(ctrl *gomock.Controller) *MockBeaconChain_StreamChainHeadServer { 29 mock := &MockBeaconChain_StreamChainHeadServer{ctrl: ctrl} 30 mock.recorder = &MockBeaconChain_StreamChainHeadServerMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use 35 func (m *MockBeaconChain_StreamChainHeadServer) EXPECT() *MockBeaconChain_StreamChainHeadServerMockRecorder { 36 return m.recorder 37 } 38 39 // Context mocks base method 40 func (m *MockBeaconChain_StreamChainHeadServer) Context() context.Context { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "Context") 43 ret0, _ := ret[0].(context.Context) 44 return ret0 45 } 46 47 // Context indicates an expected call of Context 48 func (mr *MockBeaconChain_StreamChainHeadServerMockRecorder) Context() *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockBeaconChain_StreamChainHeadServer)(nil).Context)) 51 } 52 53 // RecvMsg mocks base method 54 func (m *MockBeaconChain_StreamChainHeadServer) RecvMsg(arg0 interface{}) error { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "RecvMsg", arg0) 57 ret0, _ := ret[0].(error) 58 return ret0 59 } 60 61 // RecvMsg indicates an expected call of RecvMsg 62 func (mr *MockBeaconChain_StreamChainHeadServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockBeaconChain_StreamChainHeadServer)(nil).RecvMsg), arg0) 65 } 66 67 // Send mocks base method 68 func (m *MockBeaconChain_StreamChainHeadServer) Send(arg0 *v1alpha1.ChainHead) error { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "Send", arg0) 71 ret0, _ := ret[0].(error) 72 return ret0 73 } 74 75 // Send indicates an expected call of Send 76 func (mr *MockBeaconChain_StreamChainHeadServerMockRecorder) Send(arg0 interface{}) *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockBeaconChain_StreamChainHeadServer)(nil).Send), arg0) 79 } 80 81 // SendHeader mocks base method 82 func (m *MockBeaconChain_StreamChainHeadServer) SendHeader(arg0 metadata.MD) error { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "SendHeader", arg0) 85 ret0, _ := ret[0].(error) 86 return ret0 87 } 88 89 // SendHeader indicates an expected call of SendHeader 90 func (mr *MockBeaconChain_StreamChainHeadServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockBeaconChain_StreamChainHeadServer)(nil).SendHeader), arg0) 93 } 94 95 // SendMsg mocks base method 96 func (m *MockBeaconChain_StreamChainHeadServer) SendMsg(arg0 interface{}) error { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "SendMsg", arg0) 99 ret0, _ := ret[0].(error) 100 return ret0 101 } 102 103 // SendMsg indicates an expected call of SendMsg 104 func (mr *MockBeaconChain_StreamChainHeadServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockBeaconChain_StreamChainHeadServer)(nil).SendMsg), arg0) 107 } 108 109 // SetHeader mocks base method 110 func (m *MockBeaconChain_StreamChainHeadServer) SetHeader(arg0 metadata.MD) error { 111 m.ctrl.T.Helper() 112 ret := m.ctrl.Call(m, "SetHeader", arg0) 113 ret0, _ := ret[0].(error) 114 return ret0 115 } 116 117 // SetHeader indicates an expected call of SetHeader 118 func (mr *MockBeaconChain_StreamChainHeadServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call { 119 mr.mock.ctrl.T.Helper() 120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockBeaconChain_StreamChainHeadServer)(nil).SetHeader), arg0) 121 } 122 123 // SetTrailer mocks base method 124 func (m *MockBeaconChain_StreamChainHeadServer) SetTrailer(arg0 metadata.MD) { 125 m.ctrl.T.Helper() 126 m.ctrl.Call(m, "SetTrailer", arg0) 127 } 128 129 // SetTrailer indicates an expected call of SetTrailer 130 func (mr *MockBeaconChain_StreamChainHeadServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call { 131 mr.mock.ctrl.T.Helper() 132 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockBeaconChain_StreamChainHeadServer)(nil).SetTrailer), arg0) 133 } 134 135 // MockBeaconChain_StreamAttestationsServer is a mock of BeaconChain_StreamAttestationsServer interface 136 type MockBeaconChain_StreamAttestationsServer struct { 137 ctrl *gomock.Controller 138 recorder *MockBeaconChain_StreamAttestationsServerMockRecorder 139 } 140 141 // MockBeaconChain_StreamAttestationsServerMockRecorder is the mock recorder for MockBeaconChain_StreamAttestationsServer 142 type MockBeaconChain_StreamAttestationsServerMockRecorder struct { 143 mock *MockBeaconChain_StreamAttestationsServer 144 } 145 146 // NewMockBeaconChain_StreamAttestationsServer creates a new mock instance 147 func NewMockBeaconChain_StreamAttestationsServer(ctrl *gomock.Controller) *MockBeaconChain_StreamAttestationsServer { 148 mock := &MockBeaconChain_StreamAttestationsServer{ctrl: ctrl} 149 mock.recorder = &MockBeaconChain_StreamAttestationsServerMockRecorder{mock} 150 return mock 151 } 152 153 // EXPECT returns an object that allows the caller to indicate expected use 154 func (m *MockBeaconChain_StreamAttestationsServer) EXPECT() *MockBeaconChain_StreamAttestationsServerMockRecorder { 155 return m.recorder 156 } 157 158 // Context mocks base method 159 func (m *MockBeaconChain_StreamAttestationsServer) Context() context.Context { 160 m.ctrl.T.Helper() 161 ret := m.ctrl.Call(m, "Context") 162 ret0, _ := ret[0].(context.Context) 163 return ret0 164 } 165 166 // Context indicates an expected call of Context 167 func (mr *MockBeaconChain_StreamAttestationsServerMockRecorder) Context() *gomock.Call { 168 mr.mock.ctrl.T.Helper() 169 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockBeaconChain_StreamAttestationsServer)(nil).Context)) 170 } 171 172 // RecvMsg mocks base method 173 func (m *MockBeaconChain_StreamAttestationsServer) RecvMsg(arg0 interface{}) error { 174 m.ctrl.T.Helper() 175 ret := m.ctrl.Call(m, "RecvMsg", arg0) 176 ret0, _ := ret[0].(error) 177 return ret0 178 } 179 180 // RecvMsg indicates an expected call of RecvMsg 181 func (mr *MockBeaconChain_StreamAttestationsServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 182 mr.mock.ctrl.T.Helper() 183 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockBeaconChain_StreamAttestationsServer)(nil).RecvMsg), arg0) 184 } 185 186 // Send mocks base method 187 func (m *MockBeaconChain_StreamAttestationsServer) Send(arg0 *v1alpha1.Attestation) error { 188 m.ctrl.T.Helper() 189 ret := m.ctrl.Call(m, "Send", arg0) 190 ret0, _ := ret[0].(error) 191 return ret0 192 } 193 194 // Send indicates an expected call of Send 195 func (mr *MockBeaconChain_StreamAttestationsServerMockRecorder) Send(arg0 interface{}) *gomock.Call { 196 mr.mock.ctrl.T.Helper() 197 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockBeaconChain_StreamAttestationsServer)(nil).Send), arg0) 198 } 199 200 // SendHeader mocks base method 201 func (m *MockBeaconChain_StreamAttestationsServer) SendHeader(arg0 metadata.MD) error { 202 m.ctrl.T.Helper() 203 ret := m.ctrl.Call(m, "SendHeader", arg0) 204 ret0, _ := ret[0].(error) 205 return ret0 206 } 207 208 // SendHeader indicates an expected call of SendHeader 209 func (mr *MockBeaconChain_StreamAttestationsServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call { 210 mr.mock.ctrl.T.Helper() 211 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockBeaconChain_StreamAttestationsServer)(nil).SendHeader), arg0) 212 } 213 214 // SendMsg mocks base method 215 func (m *MockBeaconChain_StreamAttestationsServer) SendMsg(arg0 interface{}) error { 216 m.ctrl.T.Helper() 217 ret := m.ctrl.Call(m, "SendMsg", arg0) 218 ret0, _ := ret[0].(error) 219 return ret0 220 } 221 222 // SendMsg indicates an expected call of SendMsg 223 func (mr *MockBeaconChain_StreamAttestationsServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 224 mr.mock.ctrl.T.Helper() 225 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockBeaconChain_StreamAttestationsServer)(nil).SendMsg), arg0) 226 } 227 228 // SetHeader mocks base method 229 func (m *MockBeaconChain_StreamAttestationsServer) SetHeader(arg0 metadata.MD) error { 230 m.ctrl.T.Helper() 231 ret := m.ctrl.Call(m, "SetHeader", arg0) 232 ret0, _ := ret[0].(error) 233 return ret0 234 } 235 236 // SetHeader indicates an expected call of SetHeader 237 func (mr *MockBeaconChain_StreamAttestationsServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call { 238 mr.mock.ctrl.T.Helper() 239 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockBeaconChain_StreamAttestationsServer)(nil).SetHeader), arg0) 240 } 241 242 // SetTrailer mocks base method 243 func (m *MockBeaconChain_StreamAttestationsServer) SetTrailer(arg0 metadata.MD) { 244 m.ctrl.T.Helper() 245 m.ctrl.Call(m, "SetTrailer", arg0) 246 } 247 248 // SetTrailer indicates an expected call of SetTrailer 249 func (mr *MockBeaconChain_StreamAttestationsServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call { 250 mr.mock.ctrl.T.Helper() 251 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockBeaconChain_StreamAttestationsServer)(nil).SetTrailer), arg0) 252 } 253 254 // MockBeaconChain_StreamBlocksServer is a mock of BeaconChain_StreamBlocksServer interface 255 type MockBeaconChain_StreamBlocksServer struct { 256 ctrl *gomock.Controller 257 recorder *MockBeaconChain_StreamBlocksServerMockRecorder 258 } 259 260 // MockBeaconChain_StreamBlocksServerMockRecorder is the mock recorder for MockBeaconChain_StreamBlocksServer 261 type MockBeaconChain_StreamBlocksServerMockRecorder struct { 262 mock *MockBeaconChain_StreamBlocksServer 263 } 264 265 // NewMockBeaconChain_StreamBlocksServer creates a new mock instance 266 func NewMockBeaconChain_StreamBlocksServer(ctrl *gomock.Controller) *MockBeaconChain_StreamBlocksServer { 267 mock := &MockBeaconChain_StreamBlocksServer{ctrl: ctrl} 268 mock.recorder = &MockBeaconChain_StreamBlocksServerMockRecorder{mock} 269 return mock 270 } 271 272 // EXPECT returns an object that allows the caller to indicate expected use 273 func (m *MockBeaconChain_StreamBlocksServer) EXPECT() *MockBeaconChain_StreamBlocksServerMockRecorder { 274 return m.recorder 275 } 276 277 // Context mocks base method 278 func (m *MockBeaconChain_StreamBlocksServer) Context() context.Context { 279 m.ctrl.T.Helper() 280 ret := m.ctrl.Call(m, "Context") 281 ret0, _ := ret[0].(context.Context) 282 return ret0 283 } 284 285 // Context indicates an expected call of Context 286 func (mr *MockBeaconChain_StreamBlocksServerMockRecorder) Context() *gomock.Call { 287 mr.mock.ctrl.T.Helper() 288 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockBeaconChain_StreamBlocksServer)(nil).Context)) 289 } 290 291 // RecvMsg mocks base method 292 func (m *MockBeaconChain_StreamBlocksServer) RecvMsg(arg0 interface{}) error { 293 m.ctrl.T.Helper() 294 ret := m.ctrl.Call(m, "RecvMsg", arg0) 295 ret0, _ := ret[0].(error) 296 return ret0 297 } 298 299 // RecvMsg indicates an expected call of RecvMsg 300 func (mr *MockBeaconChain_StreamBlocksServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 301 mr.mock.ctrl.T.Helper() 302 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockBeaconChain_StreamBlocksServer)(nil).RecvMsg), arg0) 303 } 304 305 // Send mocks base method 306 func (m *MockBeaconChain_StreamBlocksServer) Send(arg0 *v1alpha1.SignedBeaconBlock) error { 307 m.ctrl.T.Helper() 308 ret := m.ctrl.Call(m, "Send", arg0) 309 ret0, _ := ret[0].(error) 310 return ret0 311 } 312 313 // Send indicates an expected call of Send 314 func (mr *MockBeaconChain_StreamBlocksServerMockRecorder) Send(arg0 interface{}) *gomock.Call { 315 mr.mock.ctrl.T.Helper() 316 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockBeaconChain_StreamBlocksServer)(nil).Send), arg0) 317 } 318 319 // SendHeader mocks base method 320 func (m *MockBeaconChain_StreamBlocksServer) SendHeader(arg0 metadata.MD) error { 321 m.ctrl.T.Helper() 322 ret := m.ctrl.Call(m, "SendHeader", arg0) 323 ret0, _ := ret[0].(error) 324 return ret0 325 } 326 327 // SendHeader indicates an expected call of SendHeader 328 func (mr *MockBeaconChain_StreamBlocksServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call { 329 mr.mock.ctrl.T.Helper() 330 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockBeaconChain_StreamBlocksServer)(nil).SendHeader), arg0) 331 } 332 333 // SendMsg mocks base method 334 func (m *MockBeaconChain_StreamBlocksServer) SendMsg(arg0 interface{}) error { 335 m.ctrl.T.Helper() 336 ret := m.ctrl.Call(m, "SendMsg", arg0) 337 ret0, _ := ret[0].(error) 338 return ret0 339 } 340 341 // SendMsg indicates an expected call of SendMsg 342 func (mr *MockBeaconChain_StreamBlocksServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 343 mr.mock.ctrl.T.Helper() 344 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockBeaconChain_StreamBlocksServer)(nil).SendMsg), arg0) 345 } 346 347 // SetHeader mocks base method 348 func (m *MockBeaconChain_StreamBlocksServer) SetHeader(arg0 metadata.MD) error { 349 m.ctrl.T.Helper() 350 ret := m.ctrl.Call(m, "SetHeader", arg0) 351 ret0, _ := ret[0].(error) 352 return ret0 353 } 354 355 // SetHeader indicates an expected call of SetHeader 356 func (mr *MockBeaconChain_StreamBlocksServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call { 357 mr.mock.ctrl.T.Helper() 358 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockBeaconChain_StreamBlocksServer)(nil).SetHeader), arg0) 359 } 360 361 // SetTrailer mocks base method 362 func (m *MockBeaconChain_StreamBlocksServer) SetTrailer(arg0 metadata.MD) { 363 m.ctrl.T.Helper() 364 m.ctrl.Call(m, "SetTrailer", arg0) 365 } 366 367 // SetTrailer indicates an expected call of SetTrailer 368 func (mr *MockBeaconChain_StreamBlocksServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call { 369 mr.mock.ctrl.T.Helper() 370 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockBeaconChain_StreamBlocksServer)(nil).SetTrailer), arg0) 371 } 372 373 // MockBeaconChain_StreamValidatorsInfoServer is a mock of BeaconChain_StreamValidatorsInfoServer interface 374 type MockBeaconChain_StreamValidatorsInfoServer struct { 375 ctrl *gomock.Controller 376 recorder *MockBeaconChain_StreamValidatorsInfoServerMockRecorder 377 } 378 379 // MockBeaconChain_StreamValidatorsInfoServerMockRecorder is the mock recorder for MockBeaconChain_StreamValidatorsInfoServer 380 type MockBeaconChain_StreamValidatorsInfoServerMockRecorder struct { 381 mock *MockBeaconChain_StreamValidatorsInfoServer 382 } 383 384 // NewMockBeaconChain_StreamValidatorsInfoServer creates a new mock instance 385 func NewMockBeaconChain_StreamValidatorsInfoServer(ctrl *gomock.Controller) *MockBeaconChain_StreamValidatorsInfoServer { 386 mock := &MockBeaconChain_StreamValidatorsInfoServer{ctrl: ctrl} 387 mock.recorder = &MockBeaconChain_StreamValidatorsInfoServerMockRecorder{mock} 388 return mock 389 } 390 391 // EXPECT returns an object that allows the caller to indicate expected use 392 func (m *MockBeaconChain_StreamValidatorsInfoServer) EXPECT() *MockBeaconChain_StreamValidatorsInfoServerMockRecorder { 393 return m.recorder 394 } 395 396 // Context mocks base method 397 func (m *MockBeaconChain_StreamValidatorsInfoServer) Context() context.Context { 398 m.ctrl.T.Helper() 399 ret := m.ctrl.Call(m, "Context") 400 ret0, _ := ret[0].(context.Context) 401 return ret0 402 } 403 404 // Context indicates an expected call of Context 405 func (mr *MockBeaconChain_StreamValidatorsInfoServerMockRecorder) Context() *gomock.Call { 406 mr.mock.ctrl.T.Helper() 407 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockBeaconChain_StreamValidatorsInfoServer)(nil).Context)) 408 } 409 410 // Recv mocks base method 411 func (m *MockBeaconChain_StreamValidatorsInfoServer) Recv() (*v1alpha1.ValidatorChangeSet, error) { 412 m.ctrl.T.Helper() 413 ret := m.ctrl.Call(m, "Recv") 414 ret0, _ := ret[0].(*v1alpha1.ValidatorChangeSet) 415 ret1, _ := ret[1].(error) 416 return ret0, ret1 417 } 418 419 // Recv indicates an expected call of Recv 420 func (mr *MockBeaconChain_StreamValidatorsInfoServerMockRecorder) Recv() *gomock.Call { 421 mr.mock.ctrl.T.Helper() 422 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockBeaconChain_StreamValidatorsInfoServer)(nil).Recv)) 423 } 424 425 // RecvMsg mocks base method 426 func (m *MockBeaconChain_StreamValidatorsInfoServer) RecvMsg(arg0 interface{}) error { 427 m.ctrl.T.Helper() 428 ret := m.ctrl.Call(m, "RecvMsg", arg0) 429 ret0, _ := ret[0].(error) 430 return ret0 431 } 432 433 // RecvMsg indicates an expected call of RecvMsg 434 func (mr *MockBeaconChain_StreamValidatorsInfoServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 435 mr.mock.ctrl.T.Helper() 436 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockBeaconChain_StreamValidatorsInfoServer)(nil).RecvMsg), arg0) 437 } 438 439 // Send mocks base method 440 func (m *MockBeaconChain_StreamValidatorsInfoServer) Send(arg0 *v1alpha1.ValidatorInfo) error { 441 m.ctrl.T.Helper() 442 ret := m.ctrl.Call(m, "Send", arg0) 443 ret0, _ := ret[0].(error) 444 return ret0 445 } 446 447 // Send indicates an expected call of Send 448 func (mr *MockBeaconChain_StreamValidatorsInfoServerMockRecorder) Send(arg0 interface{}) *gomock.Call { 449 mr.mock.ctrl.T.Helper() 450 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockBeaconChain_StreamValidatorsInfoServer)(nil).Send), arg0) 451 } 452 453 // SendHeader mocks base method 454 func (m *MockBeaconChain_StreamValidatorsInfoServer) SendHeader(arg0 metadata.MD) error { 455 m.ctrl.T.Helper() 456 ret := m.ctrl.Call(m, "SendHeader", arg0) 457 ret0, _ := ret[0].(error) 458 return ret0 459 } 460 461 // SendHeader indicates an expected call of SendHeader 462 func (mr *MockBeaconChain_StreamValidatorsInfoServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call { 463 mr.mock.ctrl.T.Helper() 464 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockBeaconChain_StreamValidatorsInfoServer)(nil).SendHeader), arg0) 465 } 466 467 // SendMsg mocks base method 468 func (m *MockBeaconChain_StreamValidatorsInfoServer) SendMsg(arg0 interface{}) error { 469 m.ctrl.T.Helper() 470 ret := m.ctrl.Call(m, "SendMsg", arg0) 471 ret0, _ := ret[0].(error) 472 return ret0 473 } 474 475 // SendMsg indicates an expected call of SendMsg 476 func (mr *MockBeaconChain_StreamValidatorsInfoServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 477 mr.mock.ctrl.T.Helper() 478 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockBeaconChain_StreamValidatorsInfoServer)(nil).SendMsg), arg0) 479 } 480 481 // SetHeader mocks base method 482 func (m *MockBeaconChain_StreamValidatorsInfoServer) SetHeader(arg0 metadata.MD) error { 483 m.ctrl.T.Helper() 484 ret := m.ctrl.Call(m, "SetHeader", arg0) 485 ret0, _ := ret[0].(error) 486 return ret0 487 } 488 489 // SetHeader indicates an expected call of SetHeader 490 func (mr *MockBeaconChain_StreamValidatorsInfoServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call { 491 mr.mock.ctrl.T.Helper() 492 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockBeaconChain_StreamValidatorsInfoServer)(nil).SetHeader), arg0) 493 } 494 495 // SetTrailer mocks base method 496 func (m *MockBeaconChain_StreamValidatorsInfoServer) SetTrailer(arg0 metadata.MD) { 497 m.ctrl.T.Helper() 498 m.ctrl.Call(m, "SetTrailer", arg0) 499 } 500 501 // SetTrailer indicates an expected call of SetTrailer 502 func (mr *MockBeaconChain_StreamValidatorsInfoServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call { 503 mr.mock.ctrl.T.Helper() 504 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockBeaconChain_StreamValidatorsInfoServer)(nil).SetTrailer), arg0) 505 } 506 507 // MockBeaconChain_StreamIndexedAttestationsServer is a mock of BeaconChain_StreamIndexedAttestationsServer interface 508 type MockBeaconChain_StreamIndexedAttestationsServer struct { 509 ctrl *gomock.Controller 510 recorder *MockBeaconChain_StreamIndexedAttestationsServerMockRecorder 511 } 512 513 // MockBeaconChain_StreamIndexedAttestationsServerMockRecorder is the mock recorder for MockBeaconChain_StreamIndexedAttestationsServer 514 type MockBeaconChain_StreamIndexedAttestationsServerMockRecorder struct { 515 mock *MockBeaconChain_StreamIndexedAttestationsServer 516 } 517 518 // NewMockBeaconChain_StreamIndexedAttestationsServer creates a new mock instance 519 func NewMockBeaconChain_StreamIndexedAttestationsServer(ctrl *gomock.Controller) *MockBeaconChain_StreamIndexedAttestationsServer { 520 mock := &MockBeaconChain_StreamIndexedAttestationsServer{ctrl: ctrl} 521 mock.recorder = &MockBeaconChain_StreamIndexedAttestationsServerMockRecorder{mock} 522 return mock 523 } 524 525 // EXPECT returns an object that allows the caller to indicate expected use 526 func (m *MockBeaconChain_StreamIndexedAttestationsServer) EXPECT() *MockBeaconChain_StreamIndexedAttestationsServerMockRecorder { 527 return m.recorder 528 } 529 530 // Context mocks base method 531 func (m *MockBeaconChain_StreamIndexedAttestationsServer) Context() context.Context { 532 m.ctrl.T.Helper() 533 ret := m.ctrl.Call(m, "Context") 534 ret0, _ := ret[0].(context.Context) 535 return ret0 536 } 537 538 // Context indicates an expected call of Context 539 func (mr *MockBeaconChain_StreamIndexedAttestationsServerMockRecorder) Context() *gomock.Call { 540 mr.mock.ctrl.T.Helper() 541 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockBeaconChain_StreamIndexedAttestationsServer)(nil).Context)) 542 } 543 544 // RecvMsg mocks base method 545 func (m *MockBeaconChain_StreamIndexedAttestationsServer) RecvMsg(arg0 interface{}) error { 546 m.ctrl.T.Helper() 547 ret := m.ctrl.Call(m, "RecvMsg", arg0) 548 ret0, _ := ret[0].(error) 549 return ret0 550 } 551 552 // RecvMsg indicates an expected call of RecvMsg 553 func (mr *MockBeaconChain_StreamIndexedAttestationsServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 554 mr.mock.ctrl.T.Helper() 555 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockBeaconChain_StreamIndexedAttestationsServer)(nil).RecvMsg), arg0) 556 } 557 558 // Send mocks base method 559 func (m *MockBeaconChain_StreamIndexedAttestationsServer) Send(arg0 *v1alpha1.IndexedAttestation) error { 560 m.ctrl.T.Helper() 561 ret := m.ctrl.Call(m, "Send", arg0) 562 ret0, _ := ret[0].(error) 563 return ret0 564 } 565 566 // Send indicates an expected call of Send 567 func (mr *MockBeaconChain_StreamIndexedAttestationsServerMockRecorder) Send(arg0 interface{}) *gomock.Call { 568 mr.mock.ctrl.T.Helper() 569 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockBeaconChain_StreamIndexedAttestationsServer)(nil).Send), arg0) 570 } 571 572 // SendHeader mocks base method 573 func (m *MockBeaconChain_StreamIndexedAttestationsServer) SendHeader(arg0 metadata.MD) error { 574 m.ctrl.T.Helper() 575 ret := m.ctrl.Call(m, "SendHeader", arg0) 576 ret0, _ := ret[0].(error) 577 return ret0 578 } 579 580 // SendHeader indicates an expected call of SendHeader 581 func (mr *MockBeaconChain_StreamIndexedAttestationsServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call { 582 mr.mock.ctrl.T.Helper() 583 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockBeaconChain_StreamIndexedAttestationsServer)(nil).SendHeader), arg0) 584 } 585 586 // SendMsg mocks base method 587 func (m *MockBeaconChain_StreamIndexedAttestationsServer) SendMsg(arg0 interface{}) error { 588 m.ctrl.T.Helper() 589 ret := m.ctrl.Call(m, "SendMsg", arg0) 590 ret0, _ := ret[0].(error) 591 return ret0 592 } 593 594 // SendMsg indicates an expected call of SendMsg 595 func (mr *MockBeaconChain_StreamIndexedAttestationsServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 596 mr.mock.ctrl.T.Helper() 597 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockBeaconChain_StreamIndexedAttestationsServer)(nil).SendMsg), arg0) 598 } 599 600 // SetHeader mocks base method 601 func (m *MockBeaconChain_StreamIndexedAttestationsServer) SetHeader(arg0 metadata.MD) error { 602 m.ctrl.T.Helper() 603 ret := m.ctrl.Call(m, "SetHeader", arg0) 604 ret0, _ := ret[0].(error) 605 return ret0 606 } 607 608 // SetHeader indicates an expected call of SetHeader 609 func (mr *MockBeaconChain_StreamIndexedAttestationsServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call { 610 mr.mock.ctrl.T.Helper() 611 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockBeaconChain_StreamIndexedAttestationsServer)(nil).SetHeader), arg0) 612 } 613 614 // SetTrailer mocks base method 615 func (m *MockBeaconChain_StreamIndexedAttestationsServer) SetTrailer(arg0 metadata.MD) { 616 m.ctrl.T.Helper() 617 m.ctrl.Call(m, "SetTrailer", arg0) 618 } 619 620 // SetTrailer indicates an expected call of SetTrailer 621 func (mr *MockBeaconChain_StreamIndexedAttestationsServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call { 622 mr.mock.ctrl.T.Helper() 623 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockBeaconChain_StreamIndexedAttestationsServer)(nil).SetTrailer), arg0) 624 }