golang/doc/next/6-stdlib/99-minor/testing/62516.md

125 B

The new [T.Chdir] and [B.Chdir] methods can be used to change the working directory for the duration of a test or benchmark.