github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/x/config/configflag/os_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: /Users/andrewmains/Code/gocode/src/github.com/m3db/m3/src/x/config/configflag/flag.go 3 4 // Copyright (c) 2019 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 // Package configflag is a generated GoMock package. 25 package configflag 26 27 import ( 28 "io" 29 "reflect" 30 31 "github.com/golang/mock/gomock" 32 ) 33 34 // MockosIface is a mock of osIface interface 35 type MockosIface struct { 36 ctrl *gomock.Controller 37 recorder *MockosIfaceMockRecorder 38 } 39 40 // MockosIfaceMockRecorder is the mock recorder for MockosIface 41 type MockosIfaceMockRecorder struct { 42 mock *MockosIface 43 } 44 45 // NewMockosIface creates a new mock instance 46 func NewMockosIface(ctrl *gomock.Controller) *MockosIface { 47 mock := &MockosIface{ctrl: ctrl} 48 mock.recorder = &MockosIfaceMockRecorder{mock} 49 return mock 50 } 51 52 // EXPECT returns an object that allows the caller to indicate expected use 53 func (m *MockosIface) EXPECT() *MockosIfaceMockRecorder { 54 return m.recorder 55 } 56 57 // Exit mocks base method 58 func (m *MockosIface) Exit(status int) { 59 m.ctrl.T.Helper() 60 m.ctrl.Call(m, "Exit", status) 61 } 62 63 // Exit indicates an expected call of Exit 64 func (mr *MockosIfaceMockRecorder) Exit(status interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exit", reflect.TypeOf((*MockosIface)(nil).Exit), status) 67 } 68 69 // Stdout mocks base method 70 func (m *MockosIface) Stdout() io.Writer { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "Stdout") 73 ret0, _ := ret[0].(io.Writer) 74 return ret0 75 } 76 77 // Stdout indicates an expected call of Stdout 78 func (mr *MockosIfaceMockRecorder) Stdout() *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stdout", reflect.TypeOf((*MockosIface)(nil).Stdout)) 81 }