kisielk / errcheck

errcheck checks that you checked errors.
MIT License
2.36k stars 137 forks source link

Simplify tests by refactoring to T.TempDir #239

Closed alexandear closed 9 months ago

alexandear commented 9 months ago

This PR refactors tests by changing to use T.TempDir instead of os.MkdirTemp. T.TempDir automatically removes the temporary directory.