...
1
2
3
4
5 package storage
6
7 import (
8 reflect "reflect"
9
10 gomock "github.com/golang/mock/gomock"
11 )
12
13
14 type MockClient struct {
15 ctrl *gomock.Controller
16 recorder *MockClientMockRecorder
17 }
18
19
20 type MockClientMockRecorder struct {
21 mock *MockClient
22 }
23
24
25 func NewMockClient(ctrl *gomock.Controller) *MockClient {
26 mock := &MockClient{ctrl: ctrl}
27 mock.recorder = &MockClientMockRecorder{mock}
28 return mock
29 }
30
31
32 func (m *MockClient) EXPECT() *MockClientMockRecorder {
33 return m.recorder
34 }
35
36
37 func (m *MockClient) Create(arg0 Storage) error {
38 m.ctrl.T.Helper()
39 ret := m.ctrl.Call(m, "Create", arg0)
40 ret0, _ := ret[0].(error)
41 return ret0
42 }
43
44
45 func (mr *MockClientMockRecorder) Create(arg0 interface{}) *gomock.Call {
46 mr.mock.ctrl.T.Helper()
47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockClient)(nil).Create), arg0)
48 }
49
50
51 func (m *MockClient) Delete(arg0 string) error {
52 m.ctrl.T.Helper()
53 ret := m.ctrl.Call(m, "Delete", arg0)
54 ret0, _ := ret[0].(error)
55 return ret0
56 }
57
58
59 func (mr *MockClientMockRecorder) Delete(arg0 interface{}) *gomock.Call {
60 mr.mock.ctrl.T.Helper()
61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockClient)(nil).Delete), arg0)
62 }
63
64
65 func (m *MockClient) List() (StorageList, error) {
66 m.ctrl.T.Helper()
67 ret := m.ctrl.Call(m, "List")
68 ret0, _ := ret[0].(StorageList)
69 ret1, _ := ret[1].(error)
70 return ret0, ret1
71 }
72
73
74 func (mr *MockClientMockRecorder) List() *gomock.Call {
75 mr.mock.ctrl.T.Helper()
76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClient)(nil).List))
77 }
78
View as plain text