...
1
2
3 package cli_test
4
5 import (
6 "fmt"
7 "testing"
8
9 "github.com/urfave/cli/v2"
10 )
11
12 func TestFloat64SliceFlag_SatisfiesFlagInterface(t *testing.T) {
13 var f cli.Flag = &cli.Float64SliceFlag{}
14
15 _ = f.IsSet()
16 _ = f.Names()
17 }
18
19 func TestFloat64SliceFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
20 var f cli.RequiredFlag = &cli.Float64SliceFlag{}
21
22 _ = f.IsRequired()
23 }
24
25 func TestFloat64SliceFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
26 var f cli.VisibleFlag = &cli.Float64SliceFlag{}
27
28 _ = f.IsVisible()
29 }
30
31 func TestGenericFlag_SatisfiesFlagInterface(t *testing.T) {
32 var f cli.Flag = &cli.GenericFlag{}
33
34 _ = f.IsSet()
35 _ = f.Names()
36 }
37
38 func TestGenericFlag_SatisfiesFmtStringerInterface(t *testing.T) {
39 var f fmt.Stringer = &cli.GenericFlag{}
40
41 _ = f.String()
42 }
43
44 func TestGenericFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
45 var f cli.RequiredFlag = &cli.GenericFlag{}
46
47 _ = f.IsRequired()
48 }
49
50 func TestGenericFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
51 var f cli.VisibleFlag = &cli.GenericFlag{}
52
53 _ = f.IsVisible()
54 }
55
56 func TestInt64SliceFlag_SatisfiesFlagInterface(t *testing.T) {
57 var f cli.Flag = &cli.Int64SliceFlag{}
58
59 _ = f.IsSet()
60 _ = f.Names()
61 }
62
63 func TestInt64SliceFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
64 var f cli.RequiredFlag = &cli.Int64SliceFlag{}
65
66 _ = f.IsRequired()
67 }
68
69 func TestInt64SliceFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
70 var f cli.VisibleFlag = &cli.Int64SliceFlag{}
71
72 _ = f.IsVisible()
73 }
74
75 func TestIntSliceFlag_SatisfiesFlagInterface(t *testing.T) {
76 var f cli.Flag = &cli.IntSliceFlag{}
77
78 _ = f.IsSet()
79 _ = f.Names()
80 }
81
82 func TestIntSliceFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
83 var f cli.RequiredFlag = &cli.IntSliceFlag{}
84
85 _ = f.IsRequired()
86 }
87
88 func TestIntSliceFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
89 var f cli.VisibleFlag = &cli.IntSliceFlag{}
90
91 _ = f.IsVisible()
92 }
93
94 func TestPathFlag_SatisfiesFlagInterface(t *testing.T) {
95 var f cli.Flag = &cli.PathFlag{}
96
97 _ = f.IsSet()
98 _ = f.Names()
99 }
100
101 func TestPathFlag_SatisfiesFmtStringerInterface(t *testing.T) {
102 var f fmt.Stringer = &cli.PathFlag{}
103
104 _ = f.String()
105 }
106
107 func TestPathFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
108 var f cli.RequiredFlag = &cli.PathFlag{}
109
110 _ = f.IsRequired()
111 }
112
113 func TestPathFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
114 var f cli.VisibleFlag = &cli.PathFlag{}
115
116 _ = f.IsVisible()
117 }
118
119 func TestStringSliceFlag_SatisfiesFlagInterface(t *testing.T) {
120 var f cli.Flag = &cli.StringSliceFlag{}
121
122 _ = f.IsSet()
123 _ = f.Names()
124 }
125
126 func TestStringSliceFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
127 var f cli.RequiredFlag = &cli.StringSliceFlag{}
128
129 _ = f.IsRequired()
130 }
131
132 func TestStringSliceFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
133 var f cli.VisibleFlag = &cli.StringSliceFlag{}
134
135 _ = f.IsVisible()
136 }
137
138 func TestTimestampFlag_SatisfiesFlagInterface(t *testing.T) {
139 var f cli.Flag = &cli.TimestampFlag{}
140
141 _ = f.IsSet()
142 _ = f.Names()
143 }
144
145 func TestTimestampFlag_SatisfiesFmtStringerInterface(t *testing.T) {
146 var f fmt.Stringer = &cli.TimestampFlag{}
147
148 _ = f.String()
149 }
150
151 func TestTimestampFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
152 var f cli.RequiredFlag = &cli.TimestampFlag{}
153
154 _ = f.IsRequired()
155 }
156
157 func TestTimestampFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
158 var f cli.VisibleFlag = &cli.TimestampFlag{}
159
160 _ = f.IsVisible()
161 }
162
163 func TestUint64SliceFlag_SatisfiesFlagInterface(t *testing.T) {
164 var f cli.Flag = &cli.Uint64SliceFlag{}
165
166 _ = f.IsSet()
167 _ = f.Names()
168 }
169
170 func TestUint64SliceFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
171 var f cli.RequiredFlag = &cli.Uint64SliceFlag{}
172
173 _ = f.IsRequired()
174 }
175
176 func TestUint64SliceFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
177 var f cli.VisibleFlag = &cli.Uint64SliceFlag{}
178
179 _ = f.IsVisible()
180 }
181
182 func TestUintSliceFlag_SatisfiesFlagInterface(t *testing.T) {
183 var f cli.Flag = &cli.UintSliceFlag{}
184
185 _ = f.IsSet()
186 _ = f.Names()
187 }
188
189 func TestUintSliceFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
190 var f cli.RequiredFlag = &cli.UintSliceFlag{}
191
192 _ = f.IsRequired()
193 }
194
195 func TestUintSliceFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
196 var f cli.VisibleFlag = &cli.UintSliceFlag{}
197
198 _ = f.IsVisible()
199 }
200
201 func TestBoolFlag_SatisfiesFlagInterface(t *testing.T) {
202 var f cli.Flag = &cli.BoolFlag{}
203
204 _ = f.IsSet()
205 _ = f.Names()
206 }
207
208 func TestBoolFlag_SatisfiesFmtStringerInterface(t *testing.T) {
209 var f fmt.Stringer = &cli.BoolFlag{}
210
211 _ = f.String()
212 }
213
214 func TestBoolFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
215 var f cli.RequiredFlag = &cli.BoolFlag{}
216
217 _ = f.IsRequired()
218 }
219
220 func TestBoolFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
221 var f cli.VisibleFlag = &cli.BoolFlag{}
222
223 _ = f.IsVisible()
224 }
225
226 func TestFloat64Flag_SatisfiesFlagInterface(t *testing.T) {
227 var f cli.Flag = &cli.Float64Flag{}
228
229 _ = f.IsSet()
230 _ = f.Names()
231 }
232
233 func TestFloat64Flag_SatisfiesFmtStringerInterface(t *testing.T) {
234 var f fmt.Stringer = &cli.Float64Flag{}
235
236 _ = f.String()
237 }
238
239 func TestFloat64Flag_SatisfiesRequiredFlagInterface(t *testing.T) {
240 var f cli.RequiredFlag = &cli.Float64Flag{}
241
242 _ = f.IsRequired()
243 }
244
245 func TestFloat64Flag_SatisfiesVisibleFlagInterface(t *testing.T) {
246 var f cli.VisibleFlag = &cli.Float64Flag{}
247
248 _ = f.IsVisible()
249 }
250
251 func TestIntFlag_SatisfiesFlagInterface(t *testing.T) {
252 var f cli.Flag = &cli.IntFlag{}
253
254 _ = f.IsSet()
255 _ = f.Names()
256 }
257
258 func TestIntFlag_SatisfiesFmtStringerInterface(t *testing.T) {
259 var f fmt.Stringer = &cli.IntFlag{}
260
261 _ = f.String()
262 }
263
264 func TestIntFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
265 var f cli.RequiredFlag = &cli.IntFlag{}
266
267 _ = f.IsRequired()
268 }
269
270 func TestIntFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
271 var f cli.VisibleFlag = &cli.IntFlag{}
272
273 _ = f.IsVisible()
274 }
275
276 func TestInt64Flag_SatisfiesFlagInterface(t *testing.T) {
277 var f cli.Flag = &cli.Int64Flag{}
278
279 _ = f.IsSet()
280 _ = f.Names()
281 }
282
283 func TestInt64Flag_SatisfiesFmtStringerInterface(t *testing.T) {
284 var f fmt.Stringer = &cli.Int64Flag{}
285
286 _ = f.String()
287 }
288
289 func TestInt64Flag_SatisfiesRequiredFlagInterface(t *testing.T) {
290 var f cli.RequiredFlag = &cli.Int64Flag{}
291
292 _ = f.IsRequired()
293 }
294
295 func TestInt64Flag_SatisfiesVisibleFlagInterface(t *testing.T) {
296 var f cli.VisibleFlag = &cli.Int64Flag{}
297
298 _ = f.IsVisible()
299 }
300
301 func TestStringFlag_SatisfiesFlagInterface(t *testing.T) {
302 var f cli.Flag = &cli.StringFlag{}
303
304 _ = f.IsSet()
305 _ = f.Names()
306 }
307
308 func TestStringFlag_SatisfiesFmtStringerInterface(t *testing.T) {
309 var f fmt.Stringer = &cli.StringFlag{}
310
311 _ = f.String()
312 }
313
314 func TestStringFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
315 var f cli.RequiredFlag = &cli.StringFlag{}
316
317 _ = f.IsRequired()
318 }
319
320 func TestStringFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
321 var f cli.VisibleFlag = &cli.StringFlag{}
322
323 _ = f.IsVisible()
324 }
325
326 func TestDurationFlag_SatisfiesFlagInterface(t *testing.T) {
327 var f cli.Flag = &cli.DurationFlag{}
328
329 _ = f.IsSet()
330 _ = f.Names()
331 }
332
333 func TestDurationFlag_SatisfiesFmtStringerInterface(t *testing.T) {
334 var f fmt.Stringer = &cli.DurationFlag{}
335
336 _ = f.String()
337 }
338
339 func TestDurationFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
340 var f cli.RequiredFlag = &cli.DurationFlag{}
341
342 _ = f.IsRequired()
343 }
344
345 func TestDurationFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
346 var f cli.VisibleFlag = &cli.DurationFlag{}
347
348 _ = f.IsVisible()
349 }
350
351 func TestUintFlag_SatisfiesFlagInterface(t *testing.T) {
352 var f cli.Flag = &cli.UintFlag{}
353
354 _ = f.IsSet()
355 _ = f.Names()
356 }
357
358 func TestUintFlag_SatisfiesFmtStringerInterface(t *testing.T) {
359 var f fmt.Stringer = &cli.UintFlag{}
360
361 _ = f.String()
362 }
363
364 func TestUintFlag_SatisfiesRequiredFlagInterface(t *testing.T) {
365 var f cli.RequiredFlag = &cli.UintFlag{}
366
367 _ = f.IsRequired()
368 }
369
370 func TestUintFlag_SatisfiesVisibleFlagInterface(t *testing.T) {
371 var f cli.VisibleFlag = &cli.UintFlag{}
372
373 _ = f.IsVisible()
374 }
375
376 func TestUint64Flag_SatisfiesFlagInterface(t *testing.T) {
377 var f cli.Flag = &cli.Uint64Flag{}
378
379 _ = f.IsSet()
380 _ = f.Names()
381 }
382
383 func TestUint64Flag_SatisfiesFmtStringerInterface(t *testing.T) {
384 var f fmt.Stringer = &cli.Uint64Flag{}
385
386 _ = f.String()
387 }
388
389 func TestUint64Flag_SatisfiesRequiredFlagInterface(t *testing.T) {
390 var f cli.RequiredFlag = &cli.Uint64Flag{}
391
392 _ = f.IsRequired()
393 }
394
395 func TestUint64Flag_SatisfiesVisibleFlagInterface(t *testing.T) {
396 var f cli.VisibleFlag = &cli.Uint64Flag{}
397
398 _ = f.IsVisible()
399 }
400
401
402
View as plain text