• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

astronomer / astro-cli / e4057370-8aac-4950-9d10-81b971430f3f

04 Jun 2026 02:04PM UTC coverage: 39.767% (+0.1%) from 39.653%
e4057370-8aac-4950-9d10-81b971430f3f

Pull #2156

circleci

Pritesh Arora
Addressed feedback
Pull Request #2156: Populate routes.json on Windows when proxy daemon is unavailable

5 of 24 new or added lines in 2 files covered. (20.83%)

1604 existing lines in 5 files now uncovered.

26212 of 65914 relevant lines covered (39.77%)

9.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/airflow/mocks/DockerComposeAPI.go
1
// Code generated by mockery v2.50.0. DO NOT EDIT.
2

3
package mocks
4

5
import (
6
        context "context"
7

8
        api "github.com/docker/compose/v2/pkg/api"
9

10
        mock "github.com/stretchr/testify/mock"
11

12
        types "github.com/compose-spec/compose-go/v2/types"
13
)
14

15
// DockerComposeAPI is an autogenerated mock type for the DockerComposeAPI type
16
type DockerComposeAPI struct {
17
        mock.Mock
18
}
19

20
// Attach provides a mock function with given fields: ctx, projectName, options
UNCOV
21
func (_m *DockerComposeAPI) Attach(ctx context.Context, projectName string, options api.AttachOptions) error {
×
UNCOV
22
        ret := _m.Called(ctx, projectName, options)
×
23

×
24
        if len(ret) == 0 {
×
25
                panic("no return value specified for Attach")
×
26
        }
27

UNCOV
28
        var r0 error
×
UNCOV
29
        if rf, ok := ret.Get(0).(func(context.Context, string, api.AttachOptions) error); ok {
×
30
                r0 = rf(ctx, projectName, options)
×
31
        } else {
×
32
                r0 = ret.Error(0)
×
33
        }
×
34

35
        return r0
×
36
}
37

38
// Build provides a mock function with given fields: ctx, project, options
UNCOV
39
func (_m *DockerComposeAPI) Build(ctx context.Context, project *types.Project, options api.BuildOptions) error {
×
UNCOV
40
        ret := _m.Called(ctx, project, options)
×
41

×
42
        if len(ret) == 0 {
×
43
                panic("no return value specified for Build")
×
44
        }
45

UNCOV
46
        var r0 error
×
UNCOV
47
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.BuildOptions) error); ok {
×
48
                r0 = rf(ctx, project, options)
×
49
        } else {
×
50
                r0 = ret.Error(0)
×
51
        }
×
52

53
        return r0
×
54
}
55

56
// Commit provides a mock function with given fields: ctx, projectName, options
UNCOV
57
func (_m *DockerComposeAPI) Commit(ctx context.Context, projectName string, options api.CommitOptions) error {
×
UNCOV
58
        ret := _m.Called(ctx, projectName, options)
×
59

×
60
        if len(ret) == 0 {
×
61
                panic("no return value specified for Commit")
×
62
        }
63

UNCOV
64
        var r0 error
×
UNCOV
65
        if rf, ok := ret.Get(0).(func(context.Context, string, api.CommitOptions) error); ok {
×
66
                r0 = rf(ctx, projectName, options)
×
67
        } else {
×
68
                r0 = ret.Error(0)
×
69
        }
×
70

71
        return r0
×
72
}
73

74
// Copy provides a mock function with given fields: ctx, projectName, options
UNCOV
75
func (_m *DockerComposeAPI) Copy(ctx context.Context, projectName string, options api.CopyOptions) error {
×
UNCOV
76
        ret := _m.Called(ctx, projectName, options)
×
77

×
78
        if len(ret) == 0 {
×
79
                panic("no return value specified for Copy")
×
80
        }
81

UNCOV
82
        var r0 error
×
UNCOV
83
        if rf, ok := ret.Get(0).(func(context.Context, string, api.CopyOptions) error); ok {
×
84
                r0 = rf(ctx, projectName, options)
×
85
        } else {
×
86
                r0 = ret.Error(0)
×
87
        }
×
88

89
        return r0
×
90
}
91

92
// Create provides a mock function with given fields: ctx, project, options
UNCOV
93
func (_m *DockerComposeAPI) Create(ctx context.Context, project *types.Project, options api.CreateOptions) error {
×
UNCOV
94
        ret := _m.Called(ctx, project, options)
×
95

×
96
        if len(ret) == 0 {
×
97
                panic("no return value specified for Create")
×
98
        }
99

UNCOV
100
        var r0 error
×
UNCOV
101
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.CreateOptions) error); ok {
×
102
                r0 = rf(ctx, project, options)
×
103
        } else {
×
104
                r0 = ret.Error(0)
×
105
        }
×
106

107
        return r0
×
108
}
109

110
// Down provides a mock function with given fields: ctx, projectName, options
UNCOV
111
func (_m *DockerComposeAPI) Down(ctx context.Context, projectName string, options api.DownOptions) error {
×
UNCOV
112
        ret := _m.Called(ctx, projectName, options)
×
113

×
114
        if len(ret) == 0 {
×
115
                panic("no return value specified for Down")
×
116
        }
117

UNCOV
118
        var r0 error
×
UNCOV
119
        if rf, ok := ret.Get(0).(func(context.Context, string, api.DownOptions) error); ok {
×
120
                r0 = rf(ctx, projectName, options)
×
121
        } else {
×
122
                r0 = ret.Error(0)
×
123
        }
×
124

125
        return r0
×
126
}
127

128
// DryRunMode provides a mock function with given fields: ctx, dryRun
UNCOV
129
func (_m *DockerComposeAPI) DryRunMode(ctx context.Context, dryRun bool) (context.Context, error) {
×
UNCOV
130
        ret := _m.Called(ctx, dryRun)
×
131

×
132
        if len(ret) == 0 {
×
133
                panic("no return value specified for DryRunMode")
×
134
        }
135

UNCOV
136
        var r0 context.Context
×
UNCOV
137
        var r1 error
×
138
        if rf, ok := ret.Get(0).(func(context.Context, bool) (context.Context, error)); ok {
×
139
                return rf(ctx, dryRun)
×
140
        }
×
141
        if rf, ok := ret.Get(0).(func(context.Context, bool) context.Context); ok {
×
142
                r0 = rf(ctx, dryRun)
×
143
        } else {
×
144
                if ret.Get(0) != nil {
×
145
                        r0 = ret.Get(0).(context.Context)
×
146
                }
×
147
        }
148

UNCOV
149
        if rf, ok := ret.Get(1).(func(context.Context, bool) error); ok {
×
UNCOV
150
                r1 = rf(ctx, dryRun)
×
151
        } else {
×
152
                r1 = ret.Error(1)
×
153
        }
×
154

155
        return r0, r1
×
156
}
157

158
// Events provides a mock function with given fields: ctx, projectName, options
UNCOV
159
func (_m *DockerComposeAPI) Events(ctx context.Context, projectName string, options api.EventsOptions) error {
×
UNCOV
160
        ret := _m.Called(ctx, projectName, options)
×
161

×
162
        if len(ret) == 0 {
×
163
                panic("no return value specified for Events")
×
164
        }
165

UNCOV
166
        var r0 error
×
UNCOV
167
        if rf, ok := ret.Get(0).(func(context.Context, string, api.EventsOptions) error); ok {
×
168
                r0 = rf(ctx, projectName, options)
×
169
        } else {
×
170
                r0 = ret.Error(0)
×
171
        }
×
172

173
        return r0
×
174
}
175

176
// Exec provides a mock function with given fields: ctx, projectName, options
UNCOV
177
func (_m *DockerComposeAPI) Exec(ctx context.Context, projectName string, options api.RunOptions) (int, error) {
×
UNCOV
178
        ret := _m.Called(ctx, projectName, options)
×
179

×
180
        if len(ret) == 0 {
×
181
                panic("no return value specified for Exec")
×
182
        }
183

UNCOV
184
        var r0 int
×
UNCOV
185
        var r1 error
×
186
        if rf, ok := ret.Get(0).(func(context.Context, string, api.RunOptions) (int, error)); ok {
×
187
                return rf(ctx, projectName, options)
×
188
        }
×
189
        if rf, ok := ret.Get(0).(func(context.Context, string, api.RunOptions) int); ok {
×
190
                r0 = rf(ctx, projectName, options)
×
191
        } else {
×
192
                r0 = ret.Get(0).(int)
×
193
        }
×
194

195
        if rf, ok := ret.Get(1).(func(context.Context, string, api.RunOptions) error); ok {
×
UNCOV
196
                r1 = rf(ctx, projectName, options)
×
197
        } else {
×
198
                r1 = ret.Error(1)
×
199
        }
×
200

201
        return r0, r1
×
202
}
203

204
// Export provides a mock function with given fields: ctx, projectName, options
UNCOV
205
func (_m *DockerComposeAPI) Export(ctx context.Context, projectName string, options api.ExportOptions) error {
×
UNCOV
206
        ret := _m.Called(ctx, projectName, options)
×
207

×
208
        if len(ret) == 0 {
×
209
                panic("no return value specified for Export")
×
210
        }
211

UNCOV
212
        var r0 error
×
UNCOV
213
        if rf, ok := ret.Get(0).(func(context.Context, string, api.ExportOptions) error); ok {
×
214
                r0 = rf(ctx, projectName, options)
×
215
        } else {
×
216
                r0 = ret.Error(0)
×
217
        }
×
218

219
        return r0
×
220
}
221

222
// Generate provides a mock function with given fields: ctx, options
UNCOV
223
func (_m *DockerComposeAPI) Generate(ctx context.Context, options api.GenerateOptions) (*types.Project, error) {
×
UNCOV
224
        ret := _m.Called(ctx, options)
×
225

×
226
        if len(ret) == 0 {
×
227
                panic("no return value specified for Generate")
×
228
        }
229

UNCOV
230
        var r0 *types.Project
×
UNCOV
231
        var r1 error
×
232
        if rf, ok := ret.Get(0).(func(context.Context, api.GenerateOptions) (*types.Project, error)); ok {
×
233
                return rf(ctx, options)
×
234
        }
×
235
        if rf, ok := ret.Get(0).(func(context.Context, api.GenerateOptions) *types.Project); ok {
×
236
                r0 = rf(ctx, options)
×
237
        } else {
×
238
                if ret.Get(0) != nil {
×
239
                        r0 = ret.Get(0).(*types.Project)
×
240
                }
×
241
        }
242

UNCOV
243
        if rf, ok := ret.Get(1).(func(context.Context, api.GenerateOptions) error); ok {
×
UNCOV
244
                r1 = rf(ctx, options)
×
245
        } else {
×
246
                r1 = ret.Error(1)
×
247
        }
×
248

249
        return r0, r1
×
250
}
251

252
// Images provides a mock function with given fields: ctx, projectName, options
UNCOV
253
func (_m *DockerComposeAPI) Images(ctx context.Context, projectName string, options api.ImagesOptions) ([]api.ImageSummary, error) {
×
UNCOV
254
        ret := _m.Called(ctx, projectName, options)
×
255

×
256
        if len(ret) == 0 {
×
257
                panic("no return value specified for Images")
×
258
        }
259

UNCOV
260
        var r0 []api.ImageSummary
×
UNCOV
261
        var r1 error
×
262
        if rf, ok := ret.Get(0).(func(context.Context, string, api.ImagesOptions) ([]api.ImageSummary, error)); ok {
×
263
                return rf(ctx, projectName, options)
×
264
        }
×
265
        if rf, ok := ret.Get(0).(func(context.Context, string, api.ImagesOptions) []api.ImageSummary); ok {
×
266
                r0 = rf(ctx, projectName, options)
×
267
        } else {
×
268
                if ret.Get(0) != nil {
×
269
                        r0 = ret.Get(0).([]api.ImageSummary)
×
270
                }
×
271
        }
272

UNCOV
273
        if rf, ok := ret.Get(1).(func(context.Context, string, api.ImagesOptions) error); ok {
×
UNCOV
274
                r1 = rf(ctx, projectName, options)
×
275
        } else {
×
276
                r1 = ret.Error(1)
×
277
        }
×
278

279
        return r0, r1
×
280
}
281

282
// Kill provides a mock function with given fields: ctx, projectName, options
UNCOV
283
func (_m *DockerComposeAPI) Kill(ctx context.Context, projectName string, options api.KillOptions) error {
×
UNCOV
284
        ret := _m.Called(ctx, projectName, options)
×
285

×
286
        if len(ret) == 0 {
×
287
                panic("no return value specified for Kill")
×
288
        }
289

UNCOV
290
        var r0 error
×
UNCOV
291
        if rf, ok := ret.Get(0).(func(context.Context, string, api.KillOptions) error); ok {
×
292
                r0 = rf(ctx, projectName, options)
×
293
        } else {
×
294
                r0 = ret.Error(0)
×
295
        }
×
296

297
        return r0
×
298
}
299

300
// List provides a mock function with given fields: ctx, options
UNCOV
301
func (_m *DockerComposeAPI) List(ctx context.Context, options api.ListOptions) ([]api.Stack, error) {
×
UNCOV
302
        ret := _m.Called(ctx, options)
×
303

×
304
        if len(ret) == 0 {
×
305
                panic("no return value specified for List")
×
306
        }
307

UNCOV
308
        var r0 []api.Stack
×
UNCOV
309
        var r1 error
×
310
        if rf, ok := ret.Get(0).(func(context.Context, api.ListOptions) ([]api.Stack, error)); ok {
×
311
                return rf(ctx, options)
×
312
        }
×
313
        if rf, ok := ret.Get(0).(func(context.Context, api.ListOptions) []api.Stack); ok {
×
314
                r0 = rf(ctx, options)
×
315
        } else {
×
316
                if ret.Get(0) != nil {
×
317
                        r0 = ret.Get(0).([]api.Stack)
×
318
                }
×
319
        }
320

UNCOV
321
        if rf, ok := ret.Get(1).(func(context.Context, api.ListOptions) error); ok {
×
UNCOV
322
                r1 = rf(ctx, options)
×
323
        } else {
×
324
                r1 = ret.Error(1)
×
325
        }
×
326

327
        return r0, r1
×
328
}
329

330
// Logs provides a mock function with given fields: ctx, projectName, consumer, options
UNCOV
331
func (_m *DockerComposeAPI) Logs(ctx context.Context, projectName string, consumer api.LogConsumer, options api.LogOptions) error {
×
UNCOV
332
        ret := _m.Called(ctx, projectName, consumer, options)
×
333

×
334
        if len(ret) == 0 {
×
335
                panic("no return value specified for Logs")
×
336
        }
337

UNCOV
338
        var r0 error
×
UNCOV
339
        if rf, ok := ret.Get(0).(func(context.Context, string, api.LogConsumer, api.LogOptions) error); ok {
×
340
                r0 = rf(ctx, projectName, consumer, options)
×
341
        } else {
×
342
                r0 = ret.Error(0)
×
343
        }
×
344

345
        return r0
×
346
}
347

348
// MaxConcurrency provides a mock function with given fields: parallel
UNCOV
349
func (_m *DockerComposeAPI) MaxConcurrency(parallel int) {
×
UNCOV
350
        _m.Called(parallel)
×
351
}
×
352

353
// Pause provides a mock function with given fields: ctx, projectName, options
UNCOV
354
func (_m *DockerComposeAPI) Pause(ctx context.Context, projectName string, options api.PauseOptions) error {
×
UNCOV
355
        ret := _m.Called(ctx, projectName, options)
×
356

×
357
        if len(ret) == 0 {
×
358
                panic("no return value specified for Pause")
×
359
        }
360

UNCOV
361
        var r0 error
×
UNCOV
362
        if rf, ok := ret.Get(0).(func(context.Context, string, api.PauseOptions) error); ok {
×
363
                r0 = rf(ctx, projectName, options)
×
364
        } else {
×
365
                r0 = ret.Error(0)
×
366
        }
×
367

368
        return r0
×
369
}
370

371
// Port provides a mock function with given fields: ctx, projectName, service, port, options
UNCOV
372
func (_m *DockerComposeAPI) Port(ctx context.Context, projectName string, service string, port uint16, options api.PortOptions) (string, int, error) {
×
UNCOV
373
        ret := _m.Called(ctx, projectName, service, port, options)
×
374

×
375
        if len(ret) == 0 {
×
376
                panic("no return value specified for Port")
×
377
        }
378

UNCOV
379
        var r0 string
×
UNCOV
380
        var r1 int
×
381
        var r2 error
×
382
        if rf, ok := ret.Get(0).(func(context.Context, string, string, uint16, api.PortOptions) (string, int, error)); ok {
×
383
                return rf(ctx, projectName, service, port, options)
×
384
        }
×
385
        if rf, ok := ret.Get(0).(func(context.Context, string, string, uint16, api.PortOptions) string); ok {
×
386
                r0 = rf(ctx, projectName, service, port, options)
×
387
        } else {
×
388
                r0 = ret.Get(0).(string)
×
389
        }
×
390

391
        if rf, ok := ret.Get(1).(func(context.Context, string, string, uint16, api.PortOptions) int); ok {
×
UNCOV
392
                r1 = rf(ctx, projectName, service, port, options)
×
393
        } else {
×
394
                r1 = ret.Get(1).(int)
×
395
        }
×
396

397
        if rf, ok := ret.Get(2).(func(context.Context, string, string, uint16, api.PortOptions) error); ok {
×
UNCOV
398
                r2 = rf(ctx, projectName, service, port, options)
×
399
        } else {
×
400
                r2 = ret.Error(2)
×
401
        }
×
402

403
        return r0, r1, r2
×
404
}
405

406
// Ps provides a mock function with given fields: ctx, projectName, options
UNCOV
407
func (_m *DockerComposeAPI) Ps(ctx context.Context, projectName string, options api.PsOptions) ([]api.ContainerSummary, error) {
×
UNCOV
408
        ret := _m.Called(ctx, projectName, options)
×
409

×
410
        if len(ret) == 0 {
×
411
                panic("no return value specified for Ps")
×
412
        }
413

UNCOV
414
        var r0 []api.ContainerSummary
×
UNCOV
415
        var r1 error
×
416
        if rf, ok := ret.Get(0).(func(context.Context, string, api.PsOptions) ([]api.ContainerSummary, error)); ok {
×
417
                return rf(ctx, projectName, options)
×
418
        }
×
419
        if rf, ok := ret.Get(0).(func(context.Context, string, api.PsOptions) []api.ContainerSummary); ok {
×
420
                r0 = rf(ctx, projectName, options)
×
421
        } else {
×
422
                if ret.Get(0) != nil {
×
423
                        r0 = ret.Get(0).([]api.ContainerSummary)
×
424
                }
×
425
        }
426

UNCOV
427
        if rf, ok := ret.Get(1).(func(context.Context, string, api.PsOptions) error); ok {
×
UNCOV
428
                r1 = rf(ctx, projectName, options)
×
429
        } else {
×
430
                r1 = ret.Error(1)
×
431
        }
×
432

433
        return r0, r1
×
434
}
435

436
// Publish provides a mock function with given fields: ctx, project, repository, options
UNCOV
437
func (_m *DockerComposeAPI) Publish(ctx context.Context, project *types.Project, repository string, options api.PublishOptions) error {
×
UNCOV
438
        ret := _m.Called(ctx, project, repository, options)
×
439

×
440
        if len(ret) == 0 {
×
441
                panic("no return value specified for Publish")
×
442
        }
443

UNCOV
444
        var r0 error
×
UNCOV
445
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, string, api.PublishOptions) error); ok {
×
446
                r0 = rf(ctx, project, repository, options)
×
447
        } else {
×
448
                r0 = ret.Error(0)
×
449
        }
×
450

451
        return r0
×
452
}
453

454
// Pull provides a mock function with given fields: ctx, project, options
UNCOV
455
func (_m *DockerComposeAPI) Pull(ctx context.Context, project *types.Project, options api.PullOptions) error {
×
UNCOV
456
        ret := _m.Called(ctx, project, options)
×
457

×
458
        if len(ret) == 0 {
×
459
                panic("no return value specified for Pull")
×
460
        }
461

UNCOV
462
        var r0 error
×
UNCOV
463
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.PullOptions) error); ok {
×
464
                r0 = rf(ctx, project, options)
×
465
        } else {
×
466
                r0 = ret.Error(0)
×
467
        }
×
468

469
        return r0
×
470
}
471

472
// Push provides a mock function with given fields: ctx, project, options
UNCOV
473
func (_m *DockerComposeAPI) Push(ctx context.Context, project *types.Project, options api.PushOptions) error {
×
UNCOV
474
        ret := _m.Called(ctx, project, options)
×
475

×
476
        if len(ret) == 0 {
×
477
                panic("no return value specified for Push")
×
478
        }
479

UNCOV
480
        var r0 error
×
UNCOV
481
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.PushOptions) error); ok {
×
482
                r0 = rf(ctx, project, options)
×
483
        } else {
×
484
                r0 = ret.Error(0)
×
485
        }
×
486

487
        return r0
×
488
}
489

490
// Remove provides a mock function with given fields: ctx, projectName, options
UNCOV
491
func (_m *DockerComposeAPI) Remove(ctx context.Context, projectName string, options api.RemoveOptions) error {
×
UNCOV
492
        ret := _m.Called(ctx, projectName, options)
×
493

×
494
        if len(ret) == 0 {
×
495
                panic("no return value specified for Remove")
×
496
        }
497

UNCOV
498
        var r0 error
×
UNCOV
499
        if rf, ok := ret.Get(0).(func(context.Context, string, api.RemoveOptions) error); ok {
×
500
                r0 = rf(ctx, projectName, options)
×
501
        } else {
×
502
                r0 = ret.Error(0)
×
503
        }
×
504

505
        return r0
×
506
}
507

508
// Restart provides a mock function with given fields: ctx, projectName, options
UNCOV
509
func (_m *DockerComposeAPI) Restart(ctx context.Context, projectName string, options api.RestartOptions) error {
×
UNCOV
510
        ret := _m.Called(ctx, projectName, options)
×
511

×
512
        if len(ret) == 0 {
×
513
                panic("no return value specified for Restart")
×
514
        }
515

UNCOV
516
        var r0 error
×
UNCOV
517
        if rf, ok := ret.Get(0).(func(context.Context, string, api.RestartOptions) error); ok {
×
518
                r0 = rf(ctx, projectName, options)
×
519
        } else {
×
520
                r0 = ret.Error(0)
×
521
        }
×
522

523
        return r0
×
524
}
525

526
// RunOneOffContainer provides a mock function with given fields: ctx, project, opts
UNCOV
527
func (_m *DockerComposeAPI) RunOneOffContainer(ctx context.Context, project *types.Project, opts api.RunOptions) (int, error) {
×
UNCOV
528
        ret := _m.Called(ctx, project, opts)
×
529

×
530
        if len(ret) == 0 {
×
531
                panic("no return value specified for RunOneOffContainer")
×
532
        }
533

UNCOV
534
        var r0 int
×
UNCOV
535
        var r1 error
×
536
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.RunOptions) (int, error)); ok {
×
537
                return rf(ctx, project, opts)
×
538
        }
×
539
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.RunOptions) int); ok {
×
540
                r0 = rf(ctx, project, opts)
×
541
        } else {
×
542
                r0 = ret.Get(0).(int)
×
543
        }
×
544

545
        if rf, ok := ret.Get(1).(func(context.Context, *types.Project, api.RunOptions) error); ok {
×
UNCOV
546
                r1 = rf(ctx, project, opts)
×
547
        } else {
×
548
                r1 = ret.Error(1)
×
549
        }
×
550

551
        return r0, r1
×
552
}
553

554
// Scale provides a mock function with given fields: ctx, project, options
UNCOV
555
func (_m *DockerComposeAPI) Scale(ctx context.Context, project *types.Project, options api.ScaleOptions) error {
×
UNCOV
556
        ret := _m.Called(ctx, project, options)
×
557

×
558
        if len(ret) == 0 {
×
559
                panic("no return value specified for Scale")
×
560
        }
561

UNCOV
562
        var r0 error
×
UNCOV
563
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.ScaleOptions) error); ok {
×
564
                r0 = rf(ctx, project, options)
×
565
        } else {
×
566
                r0 = ret.Error(0)
×
567
        }
×
568

569
        return r0
×
570
}
571

572
// Start provides a mock function with given fields: ctx, projectName, options
UNCOV
573
func (_m *DockerComposeAPI) Start(ctx context.Context, projectName string, options api.StartOptions) error {
×
UNCOV
574
        ret := _m.Called(ctx, projectName, options)
×
575

×
576
        if len(ret) == 0 {
×
577
                panic("no return value specified for Start")
×
578
        }
579

UNCOV
580
        var r0 error
×
UNCOV
581
        if rf, ok := ret.Get(0).(func(context.Context, string, api.StartOptions) error); ok {
×
582
                r0 = rf(ctx, projectName, options)
×
583
        } else {
×
584
                r0 = ret.Error(0)
×
585
        }
×
586

587
        return r0
×
588
}
589

590
// Stop provides a mock function with given fields: ctx, projectName, options
UNCOV
591
func (_m *DockerComposeAPI) Stop(ctx context.Context, projectName string, options api.StopOptions) error {
×
UNCOV
592
        ret := _m.Called(ctx, projectName, options)
×
593

×
594
        if len(ret) == 0 {
×
595
                panic("no return value specified for Stop")
×
596
        }
597

UNCOV
598
        var r0 error
×
UNCOV
599
        if rf, ok := ret.Get(0).(func(context.Context, string, api.StopOptions) error); ok {
×
600
                r0 = rf(ctx, projectName, options)
×
601
        } else {
×
602
                r0 = ret.Error(0)
×
603
        }
×
604

605
        return r0
×
606
}
607

608
// Top provides a mock function with given fields: ctx, projectName, services
UNCOV
609
func (_m *DockerComposeAPI) Top(ctx context.Context, projectName string, services []string) ([]api.ContainerProcSummary, error) {
×
UNCOV
610
        ret := _m.Called(ctx, projectName, services)
×
611

×
612
        if len(ret) == 0 {
×
613
                panic("no return value specified for Top")
×
614
        }
615

UNCOV
616
        var r0 []api.ContainerProcSummary
×
UNCOV
617
        var r1 error
×
618
        if rf, ok := ret.Get(0).(func(context.Context, string, []string) ([]api.ContainerProcSummary, error)); ok {
×
619
                return rf(ctx, projectName, services)
×
620
        }
×
621
        if rf, ok := ret.Get(0).(func(context.Context, string, []string) []api.ContainerProcSummary); ok {
×
622
                r0 = rf(ctx, projectName, services)
×
623
        } else {
×
624
                if ret.Get(0) != nil {
×
625
                        r0 = ret.Get(0).([]api.ContainerProcSummary)
×
626
                }
×
627
        }
628

UNCOV
629
        if rf, ok := ret.Get(1).(func(context.Context, string, []string) error); ok {
×
UNCOV
630
                r1 = rf(ctx, projectName, services)
×
631
        } else {
×
632
                r1 = ret.Error(1)
×
633
        }
×
634

635
        return r0, r1
×
636
}
637

638
// UnPause provides a mock function with given fields: ctx, projectName, options
UNCOV
639
func (_m *DockerComposeAPI) UnPause(ctx context.Context, projectName string, options api.PauseOptions) error {
×
UNCOV
640
        ret := _m.Called(ctx, projectName, options)
×
641

×
642
        if len(ret) == 0 {
×
643
                panic("no return value specified for UnPause")
×
644
        }
645

UNCOV
646
        var r0 error
×
UNCOV
647
        if rf, ok := ret.Get(0).(func(context.Context, string, api.PauseOptions) error); ok {
×
648
                r0 = rf(ctx, projectName, options)
×
649
        } else {
×
650
                r0 = ret.Error(0)
×
651
        }
×
652

653
        return r0
×
654
}
655

656
// Up provides a mock function with given fields: ctx, project, options
UNCOV
657
func (_m *DockerComposeAPI) Up(ctx context.Context, project *types.Project, options api.UpOptions) error {
×
UNCOV
658
        ret := _m.Called(ctx, project, options)
×
659

×
660
        if len(ret) == 0 {
×
661
                panic("no return value specified for Up")
×
662
        }
663

UNCOV
664
        var r0 error
×
UNCOV
665
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.UpOptions) error); ok {
×
666
                r0 = rf(ctx, project, options)
×
667
        } else {
×
668
                r0 = ret.Error(0)
×
669
        }
×
670

671
        return r0
×
672
}
673

674
// Viz provides a mock function with given fields: ctx, project, options
UNCOV
675
func (_m *DockerComposeAPI) Viz(ctx context.Context, project *types.Project, options api.VizOptions) (string, error) {
×
UNCOV
676
        ret := _m.Called(ctx, project, options)
×
677

×
678
        if len(ret) == 0 {
×
679
                panic("no return value specified for Viz")
×
680
        }
681

UNCOV
682
        var r0 string
×
UNCOV
683
        var r1 error
×
684
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.VizOptions) (string, error)); ok {
×
685
                return rf(ctx, project, options)
×
686
        }
×
687
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.VizOptions) string); ok {
×
688
                r0 = rf(ctx, project, options)
×
689
        } else {
×
690
                r0 = ret.Get(0).(string)
×
691
        }
×
692

693
        if rf, ok := ret.Get(1).(func(context.Context, *types.Project, api.VizOptions) error); ok {
×
UNCOV
694
                r1 = rf(ctx, project, options)
×
695
        } else {
×
696
                r1 = ret.Error(1)
×
697
        }
×
698

699
        return r0, r1
×
700
}
701

702
// Wait provides a mock function with given fields: ctx, projectName, options
UNCOV
703
func (_m *DockerComposeAPI) Wait(ctx context.Context, projectName string, options api.WaitOptions) (int64, error) {
×
UNCOV
704
        ret := _m.Called(ctx, projectName, options)
×
705

×
706
        if len(ret) == 0 {
×
707
                panic("no return value specified for Wait")
×
708
        }
709

UNCOV
710
        var r0 int64
×
UNCOV
711
        var r1 error
×
712
        if rf, ok := ret.Get(0).(func(context.Context, string, api.WaitOptions) (int64, error)); ok {
×
713
                return rf(ctx, projectName, options)
×
714
        }
×
715
        if rf, ok := ret.Get(0).(func(context.Context, string, api.WaitOptions) int64); ok {
×
716
                r0 = rf(ctx, projectName, options)
×
717
        } else {
×
718
                r0 = ret.Get(0).(int64)
×
719
        }
×
720

721
        if rf, ok := ret.Get(1).(func(context.Context, string, api.WaitOptions) error); ok {
×
722
                r1 = rf(ctx, projectName, options)
×
UNCOV
723
        } else {
×
UNCOV
724
                r1 = ret.Error(1)
×
725
        }
×
726

727
        return r0, r1
×
728
}
729

730
// Watch provides a mock function with given fields: ctx, project, services, options
731
func (_m *DockerComposeAPI) Watch(ctx context.Context, project *types.Project, services []string, options api.WatchOptions) error {
×
UNCOV
732
        ret := _m.Called(ctx, project, services, options)
×
UNCOV
733

×
UNCOV
734
        if len(ret) == 0 {
×
735
                panic("no return value specified for Watch")
×
736
        }
737

738
        var r0 error
×
739
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, []string, api.WatchOptions) error); ok {
×
UNCOV
740
                r0 = rf(ctx, project, services, options)
×
UNCOV
741
        } else {
×
742
                r0 = ret.Error(0)
×
743
        }
×
744

745
        return r0
×
746
}
747

748
// NewDockerComposeAPI creates a new instance of DockerComposeAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
749
// The first argument is typically a *testing.T value.
750
func NewDockerComposeAPI(t interface {
751
        mock.TestingT
752
        Cleanup(func())
753
}) *DockerComposeAPI {
×
754
        mock := &DockerComposeAPI{}
×
755
        mock.Mock.Test(t)
×
756

×
757
        t.Cleanup(func() { mock.AssertExpectations(t) })
×
758

759
        return mock
×
760
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc