See what Elastic does: https://www.elastic.co/blog/code-coverage-for-your-golang-system-tests or https://blog.cloudflare.com/go-coverage-with-external-tests/