Hello Community,
I'm testing out some code for increasing code coverage of our repository, i.e. to maximum level possible. One of the methods I'm dealing with are few methods in standard library (ssh, sftp) that need to be modified for custom behavior.
Basically, I want to modify the type definition of `sshDialer` and `sftpNewClient` to return an interface that is implemented by the native type. If I could do this, I would generate a mock struct satisfying the same interface and then perform our tests.
I know mocking standard libraries are not the best of choice, but this is just to get familiar with the language and an experiment with it.
Also would appreciate other ways to solve the same problem. Thanks