go.temporal.io/server@v1.23.0/common/persistence/visibility/store/elasticsearch/client/bulk_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: bulk_processor.go 27 28 // Package client is a generated GoMock package. 29 package client 30 31 import ( 32 reflect "reflect" 33 34 gomock "github.com/golang/mock/gomock" 35 ) 36 37 // MockBulkProcessor is a mock of BulkProcessor interface. 38 type MockBulkProcessor struct { 39 ctrl *gomock.Controller 40 recorder *MockBulkProcessorMockRecorder 41 } 42 43 // MockBulkProcessorMockRecorder is the mock recorder for MockBulkProcessor. 44 type MockBulkProcessorMockRecorder struct { 45 mock *MockBulkProcessor 46 } 47 48 // NewMockBulkProcessor creates a new mock instance. 49 func NewMockBulkProcessor(ctrl *gomock.Controller) *MockBulkProcessor { 50 mock := &MockBulkProcessor{ctrl: ctrl} 51 mock.recorder = &MockBulkProcessorMockRecorder{mock} 52 return mock 53 } 54 55 // EXPECT returns an object that allows the caller to indicate expected use. 56 func (m *MockBulkProcessor) EXPECT() *MockBulkProcessorMockRecorder { 57 return m.recorder 58 } 59 60 // Add mocks base method. 61 func (m *MockBulkProcessor) Add(request *BulkableRequest) { 62 m.ctrl.T.Helper() 63 m.ctrl.Call(m, "Add", request) 64 } 65 66 // Add indicates an expected call of Add. 67 func (mr *MockBulkProcessorMockRecorder) Add(request interface{}) *gomock.Call { 68 mr.mock.ctrl.T.Helper() 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockBulkProcessor)(nil).Add), request) 70 } 71 72 // Stop mocks base method. 73 func (m *MockBulkProcessor) Stop() error { 74 m.ctrl.T.Helper() 75 ret := m.ctrl.Call(m, "Stop") 76 ret0, _ := ret[0].(error) 77 return ret0 78 } 79 80 // Stop indicates an expected call of Stop. 81 func (mr *MockBulkProcessorMockRecorder) Stop() *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockBulkProcessor)(nil).Stop)) 84 }