in mock/ssh/mock_ssh_client_interface.go [18:47]
func (_m *SSHClientInterface) NewSession() (*ssh.Session, *ssh.Client, error) {
ret := _m.Called()
var r0 *ssh.Session
if rf, ok := ret.Get(0).(func() *ssh.Session); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ssh.Session)
}
}
var r1 *ssh.Client
if rf, ok := ret.Get(1).(func() *ssh.Client); ok {
r1 = rf()
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*ssh.Client)
}
}
var r2 error
if rf, ok := ret.Get(2).(func() error); ok {
r2 = rf()
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}