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