Code coverage for applications

Track code execution and identify dead code effectively

Code coverage enables you to see exactly what parts of your code are executed during single or multiple runs. It's an invaluable asset for detecting dead code, ensuring that every line of your code serves a purpose.

  • Detailed Execution Insights: track which parts of your code are being used and which are not during execution.
  • Dead Code Detection: easily identify and remove code that is never executed, streamlining your application.

Click the run icon in the gutter and select Run <run/debug configuration name> with Coverage. For additional options to run code coverage, refer to Running with coverage.

Code coverage for applications

New in 2023.3


Related Resources

How to Use Mock Testing in Go
How to Use Mock Testing in Go
Mocking & Rocking - Power Up Your Go Testing.
Best Practices for Error Handling in Go
Best Practices for Error Handling in Go
Reduce Bugs and Maintain Control - Essential Practices.
Common Mistakes to Avoid When Handling Errors in Go
Common Mistakes to Avoid When Handling Errors in Go
Write Clean Code - Common Error Handling Mistakes to Avoid.