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

astronomer / astro-cli / 26297149101

22 May 2026 03:37PM UTC coverage: 39.653% (-0.1%) from 39.756%
26297149101

Pull #2132

github

web-flow
Merge 70a879ad1 into 6468bfbf2
Pull Request #2132: Migrate release process to GitHub Actions with RC support and post-release automation

26202 of 66078 relevant lines covered (39.65%)

9.54 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
        volume "github.com/docker/docker/api/types/volume"
15
)
16

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

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

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

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

37
        return r0
×
38
}
39

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

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

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

55
        return r0
×
56
}
57

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

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

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

73
        return r0
×
74
}
75

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

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

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

91
        return r0
×
92
}
93

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

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

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

109
        return r0
×
110
}
111

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

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

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

127
        return r0
×
128
}
129

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

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

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

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

157
        return r0, r1
×
158
}
159

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

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

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

175
        return r0
×
176
}
177

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

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

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

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

203
        return r0, r1
×
204
}
205

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

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

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

221
        return r0
×
222
}
223

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

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

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

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

251
        return r0, r1
×
252
}
253

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

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

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

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

281
        return r0, r1
×
282
}
283

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

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

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

299
        return r0
×
300
}
301

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

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

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

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

329
        return r0, r1
×
330
}
331

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

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

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

347
        return r0
×
348
}
349

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

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

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

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

370
        return r0
×
371
}
372

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

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

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

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

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

405
        return r0, r1, r2
×
406
}
407

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

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

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

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

435
        return r0, r1
×
436
}
437

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

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

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

453
        return r0
×
454
}
455

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

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

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

471
        return r0
×
472
}
473

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

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

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

489
        return r0
×
490
}
491

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

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

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

507
        return r0
×
508
}
509

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

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

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

525
        return r0
×
526
}
527

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

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

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

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

553
        return r0, r1
×
554
}
555

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

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

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

571
        return r0
×
572
}
573

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

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

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

589
        return r0
×
590
}
591

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

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

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

607
        return r0
×
608
}
609

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

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

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

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

637
        return r0, r1
×
638
}
639

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

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

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

655
        return r0
×
656
}
657

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

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

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

673
        return r0
×
674
}
675

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

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

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

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

701
        return r0, r1
×
702
}
703

704
// Volumes provides a mock function with given fields: ctx, project, options
705
func (_m *DockerComposeAPI) Volumes(ctx context.Context, project string, options api.VolumesOptions) ([]*volume.Volume, error) {
×
706
        ret := _m.Called(ctx, project, options)
×
707

×
708
        if len(ret) == 0 {
×
709
                panic("no return value specified for Volumes")
×
710
        }
711

712
        var r0 []*volume.Volume
×
713
        var r1 error
×
714
        if rf, ok := ret.Get(0).(func(context.Context, string, api.VolumesOptions) ([]*volume.Volume, error)); ok {
×
715
                return rf(ctx, project, options)
×
716
        }
×
717
        if rf, ok := ret.Get(0).(func(context.Context, string, api.VolumesOptions) []*volume.Volume); ok {
×
718
                r0 = rf(ctx, project, options)
×
719
        } else {
×
720
                if ret.Get(0) != nil {
×
721
                        r0 = ret.Get(0).([]*volume.Volume)
×
722
                }
×
723
        }
724

725
        if rf, ok := ret.Get(1).(func(context.Context, string, api.VolumesOptions) error); ok {
×
726
                r1 = rf(ctx, project, options)
×
727
        } else {
×
728
                r1 = ret.Error(1)
×
729
        }
×
730

731
        return r0, r1
×
732
}
733

734
// Wait provides a mock function with given fields: ctx, projectName, options
735
func (_m *DockerComposeAPI) Wait(ctx context.Context, projectName string, options api.WaitOptions) (int64, error) {
×
736
        ret := _m.Called(ctx, projectName, options)
×
737

×
738
        if len(ret) == 0 {
×
739
                panic("no return value specified for Wait")
×
740
        }
741

742
        var r0 int64
×
743
        var r1 error
×
744
        if rf, ok := ret.Get(0).(func(context.Context, string, api.WaitOptions) (int64, error)); ok {
×
745
                return rf(ctx, projectName, options)
×
746
        }
×
747
        if rf, ok := ret.Get(0).(func(context.Context, string, api.WaitOptions) int64); ok {
×
748
                r0 = rf(ctx, projectName, options)
×
749
        } else {
×
750
                r0 = ret.Get(0).(int64)
×
751
        }
×
752

753
        if rf, ok := ret.Get(1).(func(context.Context, string, api.WaitOptions) error); ok {
×
754
                r1 = rf(ctx, projectName, options)
×
755
        } else {
×
756
                r1 = ret.Error(1)
×
757
        }
×
758

759
        return r0, r1
×
760
}
761

762
// Watch provides a mock function with given fields: ctx, project, options
763
func (_m *DockerComposeAPI) Watch(ctx context.Context, project *types.Project, options api.WatchOptions) error {
×
764
        ret := _m.Called(ctx, project, options)
×
765

×
766
        if len(ret) == 0 {
×
767
                panic("no return value specified for Watch")
×
768
        }
769

770
        var r0 error
×
771
        if rf, ok := ret.Get(0).(func(context.Context, *types.Project, api.WatchOptions) error); ok {
×
772
                r0 = rf(ctx, project, options)
×
773
        } else {
×
774
                r0 = ret.Error(0)
×
775
        }
×
776

777
        return r0
×
778
}
779

780
// 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.
781
// The first argument is typically a *testing.T value.
782
func NewDockerComposeAPI(t interface {
783
        mock.TestingT
784
        Cleanup(func())
785
}) *DockerComposeAPI {
×
786
        mock := &DockerComposeAPI{}
×
787
        mock.Mock.Test(t)
×
788

×
789
        t.Cleanup(func() { mock.AssertExpectations(t) })
×
790

791
        return mock
×
792
}
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