github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/cloudconfig/sshinit/sshclient_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/utils/v3/ssh (interfaces: Client) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package sshinit_test -destination sshclient_mock_test.go github.com/juju/utils/v3/ssh Client 7 // 8 9 // Package sshinit_test is a generated GoMock package. 10 package sshinit_test 11 12 import ( 13 reflect "reflect" 14 15 ssh "github.com/juju/utils/v3/ssh" 16 gomock "go.uber.org/mock/gomock" 17 ) 18 19 // MockClient is a mock of Client interface. 20 type MockClient struct { 21 ctrl *gomock.Controller 22 recorder *MockClientMockRecorder 23 } 24 25 // MockClientMockRecorder is the mock recorder for MockClient. 26 type MockClientMockRecorder struct { 27 mock *MockClient 28 } 29 30 // NewMockClient creates a new mock instance. 31 func NewMockClient(ctrl *gomock.Controller) *MockClient { 32 mock := &MockClient{ctrl: ctrl} 33 mock.recorder = &MockClientMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockClient) EXPECT() *MockClientMockRecorder { 39 return m.recorder 40 } 41 42 // Command mocks base method. 43 func (m *MockClient) Command(arg0 string, arg1 []string, arg2 *ssh.Options) *ssh.Cmd { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "Command", arg0, arg1, arg2) 46 ret0, _ := ret[0].(*ssh.Cmd) 47 return ret0 48 } 49 50 // Command indicates an expected call of Command. 51 func (mr *MockClientMockRecorder) Command(arg0, arg1, arg2 any) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Command", reflect.TypeOf((*MockClient)(nil).Command), arg0, arg1, arg2) 54 } 55 56 // Copy mocks base method. 57 func (m *MockClient) Copy(arg0 []string, arg1 *ssh.Options) error { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "Copy", arg0, arg1) 60 ret0, _ := ret[0].(error) 61 return ret0 62 } 63 64 // Copy indicates an expected call of Copy. 65 func (mr *MockClientMockRecorder) Copy(arg0, arg1 any) *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Copy", reflect.TypeOf((*MockClient)(nil).Copy), arg0, arg1) 68 }