Although much of the code around helpers.go is much more testable, the helpers themselves are basically left alone and although one can mock them out, actually doing so involves mocking out the network connection as well, which is even more work.
The helpers should be refactored so that they can be mocked out without any knowledge of the underlying network connection.
Although much of the code around helpers.go is much more testable, the helpers themselves are basically left alone and although one can mock them out, actually doing so involves mocking out the network connection as well, which is even more work.
The helpers should be refactored so that they can be mocked out without any knowledge of the underlying network connection.