Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/go/analysis/passes/loopclosure: handle t.Parallel #28771
If a test calls t.Run in a loop, and the t.Run function literal contains a call to t.Parallel, then the t.Run effectively turns from a synchronous call into a go statement.
The loopclosure check could recognize this case and treat such t.Run calls equivalent to a go statement.