Another usecase of TestMain is to verify there are no goroutine leaks at the end of all tests. This can help detect resource leaks at a package level.
Another usecase of TestMain is to verify there are no goroutine leaks at the end of all tests. This can help detect resource leaks at a package level.