github.com/m3db/m3@v1.5.0/src/m3em/os/fs/mocks/fs_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/m3em/os/fs/types.go 3 4 // Copyright (c) 2021 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 fs is a generated GoMock package. 25 package fs 26 27 import ( 28 "reflect" 29 30 "github.com/golang/mock/gomock" 31 ) 32 33 // MockFileReaderIter is a mock of FileReaderIter interface. 34 type MockFileReaderIter struct { 35 ctrl *gomock.Controller 36 recorder *MockFileReaderIterMockRecorder 37 } 38 39 // MockFileReaderIterMockRecorder is the mock recorder for MockFileReaderIter. 40 type MockFileReaderIterMockRecorder struct { 41 mock *MockFileReaderIter 42 } 43 44 // NewMockFileReaderIter creates a new mock instance. 45 func NewMockFileReaderIter(ctrl *gomock.Controller) *MockFileReaderIter { 46 mock := &MockFileReaderIter{ctrl: ctrl} 47 mock.recorder = &MockFileReaderIterMockRecorder{mock} 48 return mock 49 } 50 51 // EXPECT returns an object that allows the caller to indicate expected use. 52 func (m *MockFileReaderIter) EXPECT() *MockFileReaderIterMockRecorder { 53 return m.recorder 54 } 55 56 // Checksum mocks base method. 57 func (m *MockFileReaderIter) Checksum() uint32 { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "Checksum") 60 ret0, _ := ret[0].(uint32) 61 return ret0 62 } 63 64 // Checksum indicates an expected call of Checksum. 65 func (mr *MockFileReaderIterMockRecorder) Checksum() *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Checksum", reflect.TypeOf((*MockFileReaderIter)(nil).Checksum)) 68 } 69 70 // Close mocks base method. 71 func (m *MockFileReaderIter) Close() error { 72 m.ctrl.T.Helper() 73 ret := m.ctrl.Call(m, "Close") 74 ret0, _ := ret[0].(error) 75 return ret0 76 } 77 78 // Close indicates an expected call of Close. 79 func (mr *MockFileReaderIterMockRecorder) Close() *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockFileReaderIter)(nil).Close)) 82 } 83 84 // Current mocks base method. 85 func (m *MockFileReaderIter) Current() []byte { 86 m.ctrl.T.Helper() 87 ret := m.ctrl.Call(m, "Current") 88 ret0, _ := ret[0].([]byte) 89 return ret0 90 } 91 92 // Current indicates an expected call of Current. 93 func (mr *MockFileReaderIterMockRecorder) Current() *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockFileReaderIter)(nil).Current)) 96 } 97 98 // Err mocks base method. 99 func (m *MockFileReaderIter) Err() error { 100 m.ctrl.T.Helper() 101 ret := m.ctrl.Call(m, "Err") 102 ret0, _ := ret[0].(error) 103 return ret0 104 } 105 106 // Err indicates an expected call of Err. 107 func (mr *MockFileReaderIterMockRecorder) Err() *gomock.Call { 108 mr.mock.ctrl.T.Helper() 109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockFileReaderIter)(nil).Err)) 110 } 111 112 // Next mocks base method. 113 func (m *MockFileReaderIter) Next() bool { 114 m.ctrl.T.Helper() 115 ret := m.ctrl.Call(m, "Next") 116 ret0, _ := ret[0].(bool) 117 return ret0 118 } 119 120 // Next indicates an expected call of Next. 121 func (mr *MockFileReaderIterMockRecorder) Next() *gomock.Call { 122 mr.mock.ctrl.T.Helper() 123 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockFileReaderIter)(nil).Next)) 124 }