Repository navigation
add tests for GetLanguageStats handler - #115
Conversation
|
Yes, I think a minimum coverage check is a great idea, and I'd suggest adding it sooner rather than later. We can start small and then extend it later. Go's coverage tools don't have a fail option: If we later want per-package thresholds or coverage of new code in PRs, we could switch to the Happy to open an issue and PR for this! Should I open the issue? |
Would be great to get an issue, @DeleMike! I don't think we need per-package thresholds or coverage of new code in PRs. We could even just parse the output and get the coverage for PRs, if need be :) Might be the easiest. |
andrewtavis
left a comment
There was a problem hiding this comment.
praise: All this is looking great to me as well, @ashb155! Thanks for the great work on the tests! 🚀
Alright, I will open an issue right away! |
Contributor checklist
./pre-commitexecutable as well asmake lintand have fixed all reported issuesDescription
This PR adds comprehensive unit test coverage for the
GET /api/v1/language-statshandler (GetLanguageStats).Coverage:
GetLanguageStats: 0.0% -> 100.0%api/handlerspackage: 30.7% -> 36.1%Related issue