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