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