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

astronomer / astro-cli / 23d6d326-ef83-487f-9901-f16bd900b13d

25 Nov 2025 12:02PM UTC coverage: 33.132% (-5.5%) from 38.64%
23d6d326-ef83-487f-9901-f16bd900b13d

push

circleci

web-flow
feat: add runtime version validation for remote client deployments (#1983)

76 of 80 new or added lines in 4 files covered. (95.0%)

3547 existing lines in 30 files now uncovered.

20844 of 62912 relevant lines covered (33.13%)

8.49 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
21
func (_m *DockerComposeAPI) Attach(ctx context.Context, projectName string, options api.AttachOptions) error {
×
22
        ret := _m.Called(ctx, projectName, options)
×
23

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

28
        var r0 error
×
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
39
func (_m *DockerComposeAPI) Build(ctx context.Context, project *types.Project, options api.BuildOptions) error {
×
40
        ret := _m.Called(ctx, project, options)
×
41

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

46
        var r0 error
×
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
57
func (_m *DockerComposeAPI) Commit(ctx context.Context, projectName string, options api.CommitOptions) error {
×
58
        ret := _m.Called(ctx, projectName, options)
×
59

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

64
        var r0 error
×
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
75
func (_m *DockerComposeAPI) Copy(ctx context.Context, projectName string, options api.CopyOptions) error {
×
76
        ret := _m.Called(ctx, projectName, options)
×
77

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

82
        var r0 error
×
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
93
func (_m *DockerComposeAPI) Create(ctx context.Context, project *types.Project, options api.CreateOptions) error {
×
94
        ret := _m.Called(ctx, project, options)
×
95

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

100
        var r0 error
×
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)
×
UNCOV
113

×
UNCOV
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)
×
UNCOV
121
        } else {
×
UNCOV
122
                r0 = ret.Error(0)
×
UNCOV
123
        }
×
124

UNCOV
125
        return r0
×
126
}
127

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

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

136
        var r0 context.Context
×
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

149
        if rf, ok := ret.Get(1).(func(context.Context, bool) error); ok {
×
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
159
func (_m *DockerComposeAPI) Events(ctx context.Context, projectName string, options api.EventsOptions) error {
×
160
        ret := _m.Called(ctx, projectName, options)
×
161

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

166
        var r0 error
×
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
177
func (_m *DockerComposeAPI) Exec(ctx context.Context, projectName string, options api.RunOptions) (int, error) {
×
178
        ret := _m.Called(ctx, projectName, options)
×
179

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

184
        var r0 int
×
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 {
×
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
205
func (_m *DockerComposeAPI) Export(ctx context.Context, projectName string, options api.ExportOptions) error {
×
206
        ret := _m.Called(ctx, projectName, options)
×
207

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

212
        var r0 error
×
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
223
func (_m *DockerComposeAPI) Generate(ctx context.Context, options api.GenerateOptions) (*types.Project, error) {
×
224
        ret := _m.Called(ctx, options)
×
225

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

230
        var r0 *types.Project
×
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

243
        if rf, ok := ret.Get(1).(func(context.Context, api.GenerateOptions) error); ok {
×
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
253
func (_m *DockerComposeAPI) Images(ctx context.Context, projectName string, options api.ImagesOptions) ([]api.ImageSummary, error) {
×
254
        ret := _m.Called(ctx, projectName, options)
×
255

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

260
        var r0 []api.ImageSummary
×
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

273
        if rf, ok := ret.Get(1).(func(context.Context, string, api.ImagesOptions) error); ok {
×
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
283
func (_m *DockerComposeAPI) Kill(ctx context.Context, projectName string, options api.KillOptions) error {
×
284
        ret := _m.Called(ctx, projectName, options)
×
285

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

290
        var r0 error
×
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
301
func (_m *DockerComposeAPI) List(ctx context.Context, options api.ListOptions) ([]api.Stack, error) {
×
302
        ret := _m.Called(ctx, options)
×
303

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

308
        var r0 []api.Stack
×
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

321
        if rf, ok := ret.Get(1).(func(context.Context, api.ListOptions) error); ok {
×
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)
×
UNCOV
333

×
UNCOV
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)
×
UNCOV
341
        } else {
×
UNCOV
342
                r0 = ret.Error(0)
×
UNCOV
343
        }
×
344

UNCOV
345
        return r0
×
346
}
347

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

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

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

361
        var r0 error
×
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
372
func (_m *DockerComposeAPI) Port(ctx context.Context, projectName string, service string, port uint16, options api.PortOptions) (string, int, error) {
×
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

379
        var r0 string
×
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 {
×
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 {
×
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)
×
UNCOV
409

×
UNCOV
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
×
UNCOV
416
        if rf, ok := ret.Get(0).(func(context.Context, string, api.PsOptions) ([]api.ContainerSummary, error)); ok {
×
417
                return rf(ctx, projectName, options)
×
418
        }
×
UNCOV
419
        if rf, ok := ret.Get(0).(func(context.Context, string, api.PsOptions) []api.ContainerSummary); ok {
×
420
                r0 = rf(ctx, projectName, options)
×
UNCOV
421
        } else {
×
UNCOV
422
                if ret.Get(0) != nil {
×
UNCOV
423
                        r0 = ret.Get(0).([]api.ContainerSummary)
×
UNCOV
424
                }
×
425
        }
426

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

UNCOV
433
        return r0, r1
×
434
}
435

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

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

444
        var r0 error
×
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
455
func (_m *DockerComposeAPI) Pull(ctx context.Context, project *types.Project, options api.PullOptions) error {
×
456
        ret := _m.Called(ctx, project, options)
×
457

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

462
        var r0 error
×
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
473
func (_m *DockerComposeAPI) Push(ctx context.Context, project *types.Project, options api.PushOptions) error {
×
474
        ret := _m.Called(ctx, project, options)
×
475

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

480
        var r0 error
×
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
491
func (_m *DockerComposeAPI) Remove(ctx context.Context, projectName string, options api.RemoveOptions) error {
×
492
        ret := _m.Called(ctx, projectName, options)
×
493

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

498
        var r0 error
×
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
509
func (_m *DockerComposeAPI) Restart(ctx context.Context, projectName string, options api.RestartOptions) error {
×
510
        ret := _m.Called(ctx, projectName, options)
×
511

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

516
        var r0 error
×
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
527
func (_m *DockerComposeAPI) RunOneOffContainer(ctx context.Context, project *types.Project, opts api.RunOptions) (int, error) {
×
528
        ret := _m.Called(ctx, project, opts)
×
529

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

534
        var r0 int
×
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 {
×
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
555
func (_m *DockerComposeAPI) Scale(ctx context.Context, project *types.Project, options api.ScaleOptions) error {
×
556
        ret := _m.Called(ctx, project, options)
×
557

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

562
        var r0 error
×
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
573
func (_m *DockerComposeAPI) Start(ctx context.Context, projectName string, options api.StartOptions) error {
×
574
        ret := _m.Called(ctx, projectName, options)
×
575

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

580
        var r0 error
×
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)
×
UNCOV
593

×
UNCOV
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)
×
UNCOV
601
        } else {
×
UNCOV
602
                r0 = ret.Error(0)
×
UNCOV
603
        }
×
604

UNCOV
605
        return r0
×
606
}
607

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

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

616
        var r0 []api.ContainerProcSummary
×
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

629
        if rf, ok := ret.Get(1).(func(context.Context, string, []string) error); ok {
×
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
639
func (_m *DockerComposeAPI) UnPause(ctx context.Context, projectName string, options api.PauseOptions) error {
×
640
        ret := _m.Called(ctx, projectName, options)
×
641

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

646
        var r0 error
×
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)
×
UNCOV
659

×
UNCOV
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)
×
UNCOV
667
        } else {
×
UNCOV
668
                r0 = ret.Error(0)
×
UNCOV
669
        }
×
670

UNCOV
671
        return r0
×
672
}
673

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

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

682
        var r0 string
×
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 {
×
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
703
func (_m *DockerComposeAPI) Wait(ctx context.Context, projectName string, options api.WaitOptions) (int64, error) {
×
704
        ret := _m.Called(ctx, projectName, options)
×
705

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

710
        var r0 int64
×
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)
×
723
        } else {
×
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 {
×
732
        ret := _m.Called(ctx, project, services, options)
×
733

×
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 {
×
740
                r0 = rf(ctx, project, services, options)
×
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