go.temporal.io/server@v1.23.0/common/persistence/visibility/store/elasticsearch/processor_mock.go (about) 1 // The MIT License 2 // 3 // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 // 5 // Copyright (c) 2020 Uber Technologies, Inc. 6 // 7 // Permission is hereby granted, free of charge, to any person obtaining a copy 8 // of this software and associated documentation files (the "Software"), to deal 9 // in the Software without restriction, including without limitation the rights 10 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 // copies of the Software, and to permit persons to whom the Software is 12 // furnished to do so, subject to the following conditions: 13 // 14 // The above copyright notice and this permission notice shall be included in 15 // all copies or substantial portions of the Software. 16 // 17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 // THE SOFTWARE. 24 25 // Code generated by MockGen. DO NOT EDIT. 26 // Source: processor.go 27 28 // Package elasticsearch is a generated GoMock package. 29 package elasticsearch 30 31 import ( 32 reflect "reflect" 33 34 gomock "github.com/golang/mock/gomock" 35 "go.temporal.io/server/common/future" 36 client "go.temporal.io/server/common/persistence/visibility/store/elasticsearch/client" 37 ) 38 39 // MockProcessor is a mock of Processor interface. 40 type MockProcessor struct { 41 ctrl *gomock.Controller 42 recorder *MockProcessorMockRecorder 43 } 44 45 // MockProcessorMockRecorder is the mock recorder for MockProcessor. 46 type MockProcessorMockRecorder struct { 47 mock *MockProcessor 48 } 49 50 // NewMockProcessor creates a new mock instance. 51 func NewMockProcessor(ctrl *gomock.Controller) *MockProcessor { 52 mock := &MockProcessor{ctrl: ctrl} 53 mock.recorder = &MockProcessorMockRecorder{mock} 54 return mock 55 } 56 57 // EXPECT returns an object that allows the caller to indicate expected use. 58 func (m *MockProcessor) EXPECT() *MockProcessorMockRecorder { 59 return m.recorder 60 } 61 62 // Add mocks base method. 63 func (m *MockProcessor) Add(request *client.BulkableRequest, visibilityTaskKey string) *future.FutureImpl[bool] { 64 m.ctrl.T.Helper() 65 ret := m.ctrl.Call(m, "Add", request, visibilityTaskKey) 66 ret0, _ := ret[0].(*future.FutureImpl[bool]) 67 return ret0 68 } 69 70 // Add indicates an expected call of Add. 71 func (mr *MockProcessorMockRecorder) Add(request, visibilityTaskKey interface{}) *gomock.Call { 72 mr.mock.ctrl.T.Helper() 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockProcessor)(nil).Add), request, visibilityTaskKey) 74 } 75 76 // Remove mocks base method. 77 func (m *MockProcessor) Remove(visibilityTaskKey string) { 78 m.ctrl.T.Helper() 79 m.ctrl.Call(m, "Remove", visibilityTaskKey) 80 } 81 82 // Remove indicates an expected call of Remove. 83 func (mr *MockProcessorMockRecorder) Remove(visibilityTaskKey interface{}) *gomock.Call { 84 mr.mock.ctrl.T.Helper() 85 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockProcessor)(nil).Remove), visibilityTaskKey) 86 } 87 88 // Start mocks base method. 89 func (m *MockProcessor) Start() { 90 m.ctrl.T.Helper() 91 m.ctrl.Call(m, "Start") 92 } 93 94 // Start indicates an expected call of Start. 95 func (mr *MockProcessorMockRecorder) Start() *gomock.Call { 96 mr.mock.ctrl.T.Helper() 97 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockProcessor)(nil).Start)) 98 } 99 100 // Stop mocks base method. 101 func (m *MockProcessor) Stop() { 102 m.ctrl.T.Helper() 103 m.ctrl.Call(m, "Stop") 104 } 105 106 // Stop indicates an expected call of Stop. 107 func (mr *MockProcessorMockRecorder) Stop() *gomock.Call { 108 mr.mock.ctrl.T.Helper() 109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockProcessor)(nil).Stop)) 110 }