mimetype
mimetype copied to clipboard
Test coverage is not accurate
The problem: Code coverage reported by codecov is not accurate
Why: The bulk of code, which is the magic
package has very few unit tests. In root directory there is a test that goes through all files in testdata
and checks that they are detected correctly, but this does not count towards reported code coverage because it's not an unit test.
Solution: ?... Is there any solution? Is it worth the trouble?
? https://go.dev/blog/integration-test-coverage