Detect incorrect usages of t/b.Fatal* calls in goroutines

Find if tests or benchmarks are using t/b.Fatal* calls inside goroutines incorrectly

Calling *t/b.Fatal** methods from a goroutine is not advised as it may produce unexpected behavior.

How to use: You don't need to do anything to run this inspection as it's enabled by default.

Open your tests or benchmarks and see if it catches any issues.

Related Resources

Code coverage for applications
Track code execution and identify dead code effectively
Vulnerability checker
Analyze your codebase and highlight known vulnerabilities in go.mod
Generate tests for generic functions
Use a shortcut to generate test files for your generic functions.