-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock.go
120 lines (101 loc) · 3.44 KB
/
mock.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Code generated by MockGen. DO NOT EDIT.
// Source: pkg/upload/upload.go
// Package upload is a generated GoMock package.
package upload
import (
http "net/http"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockUpload is a mock of Upload interface.
type MockUpload struct {
ctrl *gomock.Controller
recorder *MockUploadMockRecorder
}
// MockUploadMockRecorder is the mock recorder for MockUpload.
type MockUploadMockRecorder struct {
mock *MockUpload
}
// NewMockUpload creates a new mock instance.
func NewMockUpload(ctrl *gomock.Controller) *MockUpload {
mock := &MockUpload{ctrl: ctrl}
mock.recorder = &MockUploadMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockUpload) EXPECT() *MockUploadMockRecorder {
return m.recorder
}
// Close mocks base method.
func (m *MockUpload) Close() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close.
func (mr *MockUploadMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockUpload)(nil).Close))
}
// Delete mocks base method.
func (m *MockUpload) Delete(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete.
func (mr *MockUploadMockRecorder) Delete(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockUpload)(nil).Delete), arg0)
}
// Handler mocks base method.
func (m *MockUpload) Handler(arg0 string) http.Handler {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Handler", arg0)
ret0, _ := ret[0].(http.Handler)
return ret0
}
// Handler indicates an expected call of Handler.
func (mr *MockUploadMockRecorder) Handler(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handler", reflect.TypeOf((*MockUpload)(nil).Handler), arg0)
}
// Info mocks base method.
func (m *MockUpload) Info() map[string]interface{} {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Info")
ret0, _ := ret[0].(map[string]interface{})
return ret0
}
// Info indicates an expected call of Info.
func (mr *MockUploadMockRecorder) Info() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Info", reflect.TypeOf((*MockUpload)(nil).Info))
}
// Prepare mocks base method.
func (m *MockUpload) Prepare() (Upload, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Prepare")
ret0, _ := ret[0].(Upload)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Prepare indicates an expected call of Prepare.
func (mr *MockUploadMockRecorder) Prepare() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Prepare", reflect.TypeOf((*MockUpload)(nil).Prepare))
}
// Upload mocks base method.
func (m *MockUpload) Upload(arg0, arg1 string, arg2 []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Upload", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Upload indicates an expected call of Upload.
func (mr *MockUploadMockRecorder) Upload(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upload", reflect.TypeOf((*MockUpload)(nil).Upload), arg0, arg1, arg2)
}