1
2
3
4
5 package asker
6
7 import (
8 reflect "reflect"
9
10 gomock "github.com/golang/mock/gomock"
11 api "github.com/redhat-developer/odo/pkg/api"
12 registry "github.com/redhat-developer/odo/pkg/registry"
13 )
14
15
16 type MockAsker struct {
17 ctrl *gomock.Controller
18 recorder *MockAskerMockRecorder
19 }
20
21
22 type MockAskerMockRecorder struct {
23 mock *MockAsker
24 }
25
26
27 func NewMockAsker(ctrl *gomock.Controller) *MockAsker {
28 mock := &MockAsker{ctrl: ctrl}
29 mock.recorder = &MockAskerMockRecorder{mock}
30 return mock
31 }
32
33
34 func (m *MockAsker) EXPECT() *MockAskerMockRecorder {
35 return m.recorder
36 }
37
38
39 func (m *MockAsker) AskAddEnvVar() (string, string, error) {
40 m.ctrl.T.Helper()
41 ret := m.ctrl.Call(m, "AskAddEnvVar")
42 ret0, _ := ret[0].(string)
43 ret1, _ := ret[1].(string)
44 ret2, _ := ret[2].(error)
45 return ret0, ret1, ret2
46 }
47
48
49 func (mr *MockAskerMockRecorder) AskAddEnvVar() *gomock.Call {
50 mr.mock.ctrl.T.Helper()
51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskAddEnvVar", reflect.TypeOf((*MockAsker)(nil).AskAddEnvVar))
52 }
53
54
55 func (m *MockAsker) AskAddPort() (string, error) {
56 m.ctrl.T.Helper()
57 ret := m.ctrl.Call(m, "AskAddPort")
58 ret0, _ := ret[0].(string)
59 ret1, _ := ret[1].(error)
60 return ret0, ret1
61 }
62
63
64 func (mr *MockAskerMockRecorder) AskAddPort() *gomock.Call {
65 mr.mock.ctrl.T.Helper()
66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskAddPort", reflect.TypeOf((*MockAsker)(nil).AskAddPort))
67 }
68
69
70 func (m *MockAsker) AskArchitectures(archs, selectedDefault []string) ([]string, error) {
71 m.ctrl.T.Helper()
72 ret := m.ctrl.Call(m, "AskArchitectures", archs, selectedDefault)
73 ret0, _ := ret[0].([]string)
74 ret1, _ := ret[1].(error)
75 return ret0, ret1
76 }
77
78
79 func (mr *MockAskerMockRecorder) AskArchitectures(archs, selectedDefault interface{}) *gomock.Call {
80 mr.mock.ctrl.T.Helper()
81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskArchitectures", reflect.TypeOf((*MockAsker)(nil).AskArchitectures), archs, selectedDefault)
82 }
83
84
85 func (m *MockAsker) AskContainerName(containers []string) (string, error) {
86 m.ctrl.T.Helper()
87 ret := m.ctrl.Call(m, "AskContainerName", containers)
88 ret0, _ := ret[0].(string)
89 ret1, _ := ret[1].(error)
90 return ret0, ret1
91 }
92
93
94 func (mr *MockAskerMockRecorder) AskContainerName(containers interface{}) *gomock.Call {
95 mr.mock.ctrl.T.Helper()
96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskContainerName", reflect.TypeOf((*MockAsker)(nil).AskContainerName), containers)
97 }
98
99
100 func (m *MockAsker) AskCorrect() (bool, error) {
101 m.ctrl.T.Helper()
102 ret := m.ctrl.Call(m, "AskCorrect")
103 ret0, _ := ret[0].(bool)
104 ret1, _ := ret[1].(error)
105 return ret0, ret1
106 }
107
108
109 func (mr *MockAskerMockRecorder) AskCorrect() *gomock.Call {
110 mr.mock.ctrl.T.Helper()
111 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskCorrect", reflect.TypeOf((*MockAsker)(nil).AskCorrect))
112 }
113
114
115 func (m *MockAsker) AskLanguage(langs []string) (bool, string, error) {
116 m.ctrl.T.Helper()
117 ret := m.ctrl.Call(m, "AskLanguage", langs)
118 ret0, _ := ret[0].(bool)
119 ret1, _ := ret[1].(string)
120 ret2, _ := ret[2].(error)
121 return ret0, ret1, ret2
122 }
123
124
125 func (mr *MockAskerMockRecorder) AskLanguage(langs interface{}) *gomock.Call {
126 mr.mock.ctrl.T.Helper()
127 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskLanguage", reflect.TypeOf((*MockAsker)(nil).AskLanguage), langs)
128 }
129
130
131 func (m *MockAsker) AskName(defaultName string) (string, error) {
132 m.ctrl.T.Helper()
133 ret := m.ctrl.Call(m, "AskName", defaultName)
134 ret0, _ := ret[0].(string)
135 ret1, _ := ret[1].(error)
136 return ret0, ret1
137 }
138
139
140 func (mr *MockAskerMockRecorder) AskName(defaultName interface{}) *gomock.Call {
141 mr.mock.ctrl.T.Helper()
142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskName", reflect.TypeOf((*MockAsker)(nil).AskName), defaultName)
143 }
144
145
146 func (m *MockAsker) AskPersonalizeConfiguration(configuration ContainerConfiguration) (OperationOnContainer, error) {
147 m.ctrl.T.Helper()
148 ret := m.ctrl.Call(m, "AskPersonalizeConfiguration", configuration)
149 ret0, _ := ret[0].(OperationOnContainer)
150 ret1, _ := ret[1].(error)
151 return ret0, ret1
152 }
153
154
155 func (mr *MockAskerMockRecorder) AskPersonalizeConfiguration(configuration interface{}) *gomock.Call {
156 mr.mock.ctrl.T.Helper()
157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskPersonalizeConfiguration", reflect.TypeOf((*MockAsker)(nil).AskPersonalizeConfiguration), configuration)
158 }
159
160
161 func (m *MockAsker) AskStarterProject(projects []string) (bool, int, error) {
162 m.ctrl.T.Helper()
163 ret := m.ctrl.Call(m, "AskStarterProject", projects)
164 ret0, _ := ret[0].(bool)
165 ret1, _ := ret[1].(int)
166 ret2, _ := ret[2].(error)
167 return ret0, ret1, ret2
168 }
169
170
171 func (mr *MockAskerMockRecorder) AskStarterProject(projects interface{}) *gomock.Call {
172 mr.mock.ctrl.T.Helper()
173 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskStarterProject", reflect.TypeOf((*MockAsker)(nil).AskStarterProject), projects)
174 }
175
176
177 func (m *MockAsker) AskType(types registry.TypesWithDetails) (bool, api.DevfileStack, error) {
178 m.ctrl.T.Helper()
179 ret := m.ctrl.Call(m, "AskType", types)
180 ret0, _ := ret[0].(bool)
181 ret1, _ := ret[1].(api.DevfileStack)
182 ret2, _ := ret[2].(error)
183 return ret0, ret1, ret2
184 }
185
186
187 func (mr *MockAskerMockRecorder) AskType(types interface{}) *gomock.Call {
188 mr.mock.ctrl.T.Helper()
189 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskType", reflect.TypeOf((*MockAsker)(nil).AskType), types)
190 }
191
192
193 func (m *MockAsker) AskVersion(versions []api.DevfileStackVersion) (bool, string, error) {
194 m.ctrl.T.Helper()
195 ret := m.ctrl.Call(m, "AskVersion", versions)
196 ret0, _ := ret[0].(bool)
197 ret1, _ := ret[1].(string)
198 ret2, _ := ret[2].(error)
199 return ret0, ret1, ret2
200 }
201
202
203 func (mr *MockAskerMockRecorder) AskVersion(versions interface{}) *gomock.Call {
204 mr.mock.ctrl.T.Helper()
205 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskVersion", reflect.TypeOf((*MockAsker)(nil).AskVersion), versions)
206 }
207
View as plain text