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 are not advised as it may produce unexpected behavior.

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

Detect Incorrect Usages
Detect Incorrect Usages
Formatting functions from packages such as pkg/errors, logrus or zap.
Live Template to Create a for Loop
Live Template to Create a for Loop
Benchmark loops are repetitive, so let the IDE handle this for you.
Live Template to Write Benchmark Functions
Live Template to Write Benchmark Functions
Write benchmarks quicker thanks to the builtin bench live template.