Testing doesn't follow idiomatic Go patterns very well, since tests are in a different package from the code being tested, and test data is mixed in the directory with the tests. Raising this issue as a future task for myself to refactor the test code with the following:
- Move data to
testdata
- Move tests on functions to be in the same package next to that function
- Move end to end tests that call external hosts to run with a specific tag
Testing doesn't follow idiomatic Go patterns very well, since tests are in a different package from the code being tested, and test data is mixed in the directory with the tests. Raising this issue as a future task for myself to refactor the test code with the following:
testdata