go-storage
go-storage copied to clipboard
Increase code coverage
Steps
- [x] Move
cmd/definitions/testsintotests- [x] https://github.com/beyondstorage/specs/pull/137
- [x] Build up benchmark tests via our tests services https://github.com/beyondstorage/go-storage/issues/569
- [x] https://github.com/beyondstorage/go-storage/issues/693
- [ ] Implement unit tests for all our public APIs. (maybe ignore generated ones?)

Current coverage is 18%: https://codecov.io/gh/beyondstorage/go-storage/tree/aca8f79567794692f74bd4a709934436cb428352
CodecovHosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.
- For tests: we should remove them from test coverage
- For pkg: we will split them into different packages later, for now, we will try to test them without mock.
- For generated code: maybe we need to generate related tests?