github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/pkg/actions/mock/mock_actions.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/treeverse/lakefs/pkg/actions (interfaces: Source,OutputWriter) 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 context "context" 9 io "io" 10 reflect "reflect" 11 12 gomock "github.com/golang/mock/gomock" 13 graveler "github.com/treeverse/lakefs/pkg/graveler" 14 ) 15 16 // MockSource is a mock of Source interface. 17 type MockSource struct { 18 ctrl *gomock.Controller 19 recorder *MockSourceMockRecorder 20 } 21 22 // MockSourceMockRecorder is the mock recorder for MockSource. 23 type MockSourceMockRecorder struct { 24 mock *MockSource 25 } 26 27 // NewMockSource creates a new mock instance. 28 func NewMockSource(ctrl *gomock.Controller) *MockSource { 29 mock := &MockSource{ctrl: ctrl} 30 mock.recorder = &MockSourceMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockSource) EXPECT() *MockSourceMockRecorder { 36 return m.recorder 37 } 38 39 // List mocks base method. 40 func (m *MockSource) List(arg0 context.Context, arg1 graveler.HookRecord) ([]string, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "List", arg0, arg1) 43 ret0, _ := ret[0].([]string) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // List indicates an expected call of List. 49 func (mr *MockSourceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockSource)(nil).List), arg0, arg1) 52 } 53 54 // Load mocks base method. 55 func (m *MockSource) Load(arg0 context.Context, arg1 graveler.HookRecord, arg2 string) ([]byte, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "Load", arg0, arg1, arg2) 58 ret0, _ := ret[0].([]byte) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // Load indicates an expected call of Load. 64 func (mr *MockSourceMockRecorder) Load(arg0, arg1, arg2 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Load", reflect.TypeOf((*MockSource)(nil).Load), arg0, arg1, arg2) 67 } 68 69 // MockOutputWriter is a mock of OutputWriter interface. 70 type MockOutputWriter struct { 71 ctrl *gomock.Controller 72 recorder *MockOutputWriterMockRecorder 73 } 74 75 // MockOutputWriterMockRecorder is the mock recorder for MockOutputWriter. 76 type MockOutputWriterMockRecorder struct { 77 mock *MockOutputWriter 78 } 79 80 // NewMockOutputWriter creates a new mock instance. 81 func NewMockOutputWriter(ctrl *gomock.Controller) *MockOutputWriter { 82 mock := &MockOutputWriter{ctrl: ctrl} 83 mock.recorder = &MockOutputWriterMockRecorder{mock} 84 return mock 85 } 86 87 // EXPECT returns an object that allows the caller to indicate expected use. 88 func (m *MockOutputWriter) EXPECT() *MockOutputWriterMockRecorder { 89 return m.recorder 90 } 91 92 // OutputWrite mocks base method. 93 func (m *MockOutputWriter) OutputWrite(arg0 context.Context, arg1, arg2 string, arg3 io.Reader, arg4 int64) error { 94 m.ctrl.T.Helper() 95 ret := m.ctrl.Call(m, "OutputWrite", arg0, arg1, arg2, arg3, arg4) 96 ret0, _ := ret[0].(error) 97 return ret0 98 } 99 100 // OutputWrite indicates an expected call of OutputWrite. 101 func (mr *MockOutputWriterMockRecorder) OutputWrite(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 102 mr.mock.ctrl.T.Helper() 103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OutputWrite", reflect.TypeOf((*MockOutputWriter)(nil).OutputWrite), arg0, arg1, arg2, arg3, arg4) 104 }