Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
proposal: cmd/cover: report untested nil values entry-points #17272
Given that null references cause so much unexpected trouble, what about reporting untested entry points that could cause nil point panics on the code coverage report?
This could be limited to public functions and show as a small flag on the HTML reports.
... var projects, err = repo.GetProjects() [nil] ...
Reference: Null References: The Billion Dollar Mistake