Closed 4k1k0 closed 1 year ago
This is mainly because of the fact that a ton of logic here actually relies on randoming numbers which means that there are different paths that are tested in the coverage each time.
I set the minimum coverage to 95%. Although all methods are exercised in tests, reaching 100% of coverage will not be possible until we have a major rewrite allowing mocking of many methods using interfaces. For now, I believe this is sufficient, but I'm more than happy to review this in the future if we receive more concerns.
Describe the bug If you run the test with the coverprofile flag it return different results every time.
To Reproduce
E.g.
Expected behavior It should return the same value every time.
Desktop (please complete the following information):
go version
output: go version go1.11 darwin/amd64