github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/cloudplugin/mock_cloudproto1/mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/terramate-io/tf/cloudplugin/cloudproto1 (interfaces: CommandServiceClient,CommandService_ExecuteClient) 3 4 // Package mock_cloudproto1 is a generated GoMock package. 5 package mock_cloudproto1 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 cloudproto1 "github.com/terramate-io/tf/cloudplugin/cloudproto1" 13 grpc "google.golang.org/grpc" 14 metadata "google.golang.org/grpc/metadata" 15 ) 16 17 // MockCommandServiceClient is a mock of CommandServiceClient interface. 18 type MockCommandServiceClient struct { 19 ctrl *gomock.Controller 20 recorder *MockCommandServiceClientMockRecorder 21 } 22 23 // MockCommandServiceClientMockRecorder is the mock recorder for MockCommandServiceClient. 24 type MockCommandServiceClientMockRecorder struct { 25 mock *MockCommandServiceClient 26 } 27 28 // NewMockCommandServiceClient creates a new mock instance. 29 func NewMockCommandServiceClient(ctrl *gomock.Controller) *MockCommandServiceClient { 30 mock := &MockCommandServiceClient{ctrl: ctrl} 31 mock.recorder = &MockCommandServiceClientMockRecorder{mock} 32 return mock 33 } 34 35 // EXPECT returns an object that allows the caller to indicate expected use. 36 func (m *MockCommandServiceClient) EXPECT() *MockCommandServiceClientMockRecorder { 37 return m.recorder 38 } 39 40 // Execute mocks base method. 41 func (m *MockCommandServiceClient) Execute(arg0 context.Context, arg1 *cloudproto1.CommandRequest, arg2 ...grpc.CallOption) (cloudproto1.CommandService_ExecuteClient, error) { 42 m.ctrl.T.Helper() 43 varargs := []interface{}{arg0, arg1} 44 for _, a := range arg2 { 45 varargs = append(varargs, a) 46 } 47 ret := m.ctrl.Call(m, "Execute", varargs...) 48 ret0, _ := ret[0].(cloudproto1.CommandService_ExecuteClient) 49 ret1, _ := ret[1].(error) 50 return ret0, ret1 51 } 52 53 // Execute indicates an expected call of Execute. 54 func (mr *MockCommandServiceClientMockRecorder) Execute(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 55 mr.mock.ctrl.T.Helper() 56 varargs := append([]interface{}{arg0, arg1}, arg2...) 57 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Execute", reflect.TypeOf((*MockCommandServiceClient)(nil).Execute), varargs...) 58 } 59 60 // MockCommandService_ExecuteClient is a mock of CommandService_ExecuteClient interface. 61 type MockCommandService_ExecuteClient struct { 62 ctrl *gomock.Controller 63 recorder *MockCommandService_ExecuteClientMockRecorder 64 } 65 66 // MockCommandService_ExecuteClientMockRecorder is the mock recorder for MockCommandService_ExecuteClient. 67 type MockCommandService_ExecuteClientMockRecorder struct { 68 mock *MockCommandService_ExecuteClient 69 } 70 71 // NewMockCommandService_ExecuteClient creates a new mock instance. 72 func NewMockCommandService_ExecuteClient(ctrl *gomock.Controller) *MockCommandService_ExecuteClient { 73 mock := &MockCommandService_ExecuteClient{ctrl: ctrl} 74 mock.recorder = &MockCommandService_ExecuteClientMockRecorder{mock} 75 return mock 76 } 77 78 // EXPECT returns an object that allows the caller to indicate expected use. 79 func (m *MockCommandService_ExecuteClient) EXPECT() *MockCommandService_ExecuteClientMockRecorder { 80 return m.recorder 81 } 82 83 // CloseSend mocks base method. 84 func (m *MockCommandService_ExecuteClient) CloseSend() error { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "CloseSend") 87 ret0, _ := ret[0].(error) 88 return ret0 89 } 90 91 // CloseSend indicates an expected call of CloseSend. 92 func (mr *MockCommandService_ExecuteClientMockRecorder) CloseSend() *gomock.Call { 93 mr.mock.ctrl.T.Helper() 94 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockCommandService_ExecuteClient)(nil).CloseSend)) 95 } 96 97 // Context mocks base method. 98 func (m *MockCommandService_ExecuteClient) Context() context.Context { 99 m.ctrl.T.Helper() 100 ret := m.ctrl.Call(m, "Context") 101 ret0, _ := ret[0].(context.Context) 102 return ret0 103 } 104 105 // Context indicates an expected call of Context. 106 func (mr *MockCommandService_ExecuteClientMockRecorder) Context() *gomock.Call { 107 mr.mock.ctrl.T.Helper() 108 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockCommandService_ExecuteClient)(nil).Context)) 109 } 110 111 // Header mocks base method. 112 func (m *MockCommandService_ExecuteClient) Header() (metadata.MD, error) { 113 m.ctrl.T.Helper() 114 ret := m.ctrl.Call(m, "Header") 115 ret0, _ := ret[0].(metadata.MD) 116 ret1, _ := ret[1].(error) 117 return ret0, ret1 118 } 119 120 // Header indicates an expected call of Header. 121 func (mr *MockCommandService_ExecuteClientMockRecorder) Header() *gomock.Call { 122 mr.mock.ctrl.T.Helper() 123 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockCommandService_ExecuteClient)(nil).Header)) 124 } 125 126 // Recv mocks base method. 127 func (m *MockCommandService_ExecuteClient) Recv() (*cloudproto1.CommandResponse, error) { 128 m.ctrl.T.Helper() 129 ret := m.ctrl.Call(m, "Recv") 130 ret0, _ := ret[0].(*cloudproto1.CommandResponse) 131 ret1, _ := ret[1].(error) 132 return ret0, ret1 133 } 134 135 // Recv indicates an expected call of Recv. 136 func (mr *MockCommandService_ExecuteClientMockRecorder) Recv() *gomock.Call { 137 mr.mock.ctrl.T.Helper() 138 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockCommandService_ExecuteClient)(nil).Recv)) 139 } 140 141 // RecvMsg mocks base method. 142 func (m *MockCommandService_ExecuteClient) RecvMsg(arg0 interface{}) error { 143 m.ctrl.T.Helper() 144 ret := m.ctrl.Call(m, "RecvMsg", arg0) 145 ret0, _ := ret[0].(error) 146 return ret0 147 } 148 149 // RecvMsg indicates an expected call of RecvMsg. 150 func (mr *MockCommandService_ExecuteClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 151 mr.mock.ctrl.T.Helper() 152 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockCommandService_ExecuteClient)(nil).RecvMsg), arg0) 153 } 154 155 // SendMsg mocks base method. 156 func (m *MockCommandService_ExecuteClient) SendMsg(arg0 interface{}) error { 157 m.ctrl.T.Helper() 158 ret := m.ctrl.Call(m, "SendMsg", arg0) 159 ret0, _ := ret[0].(error) 160 return ret0 161 } 162 163 // SendMsg indicates an expected call of SendMsg. 164 func (mr *MockCommandService_ExecuteClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 165 mr.mock.ctrl.T.Helper() 166 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockCommandService_ExecuteClient)(nil).SendMsg), arg0) 167 } 168 169 // Trailer mocks base method. 170 func (m *MockCommandService_ExecuteClient) Trailer() metadata.MD { 171 m.ctrl.T.Helper() 172 ret := m.ctrl.Call(m, "Trailer") 173 ret0, _ := ret[0].(metadata.MD) 174 return ret0 175 } 176 177 // Trailer indicates an expected call of Trailer. 178 func (mr *MockCommandService_ExecuteClientMockRecorder) Trailer() *gomock.Call { 179 mr.mock.ctrl.T.Helper() 180 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockCommandService_ExecuteClient)(nil).Trailer)) 181 }