...
1
2
3
4
5 package dev
6
7 import (
8 context "context"
9 io "io"
10 reflect "reflect"
11
12 gomock "github.com/golang/mock/gomock"
13 )
14
15
16 type MockClient struct {
17 ctrl *gomock.Controller
18 recorder *MockClientMockRecorder
19 }
20
21
22 type MockClientMockRecorder struct {
23 mock *MockClient
24 }
25
26
27 func NewMockClient(ctrl *gomock.Controller) *MockClient {
28 mock := &MockClient{ctrl: ctrl}
29 mock.recorder = &MockClientMockRecorder{mock}
30 return mock
31 }
32
33
34 func (m *MockClient) EXPECT() *MockClientMockRecorder {
35 return m.recorder
36 }
37
38
39 func (m *MockClient) CleanupResources(ctx context.Context, out io.Writer) error {
40 m.ctrl.T.Helper()
41 ret := m.ctrl.Call(m, "CleanupResources", ctx, out)
42 ret0, _ := ret[0].(error)
43 return ret0
44 }
45
46
47 func (mr *MockClientMockRecorder) CleanupResources(ctx, out interface{}) *gomock.Call {
48 mr.mock.ctrl.T.Helper()
49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanupResources", reflect.TypeOf((*MockClient)(nil).CleanupResources), ctx, out)
50 }
51
52
53 func (m *MockClient) Run(ctx context.Context, commandName string) error {
54 m.ctrl.T.Helper()
55 ret := m.ctrl.Call(m, "Run", ctx, commandName)
56 ret0, _ := ret[0].(error)
57 return ret0
58 }
59
60
61 func (mr *MockClientMockRecorder) Run(ctx, commandName interface{}) *gomock.Call {
62 mr.mock.ctrl.T.Helper()
63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockClient)(nil).Run), ctx, commandName)
64 }
65
66
67 func (m *MockClient) Start(ctx context.Context, options StartOptions) error {
68 m.ctrl.T.Helper()
69 ret := m.ctrl.Call(m, "Start", ctx, options)
70 ret0, _ := ret[0].(error)
71 return ret0
72 }
73
74
75 func (mr *MockClientMockRecorder) Start(ctx, options interface{}) *gomock.Call {
76 mr.mock.ctrl.T.Helper()
77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockClient)(nil).Start), ctx, options)
78 }
79
View as plain text