Swap direct os.Getenv/Setenv/LookupEnv and os.Open calls in internal/env for package-level function variables so tests can replace them with in-memory fakes. Tests no longer mutate process env or hit the filesystem, making them safe to run in parallel and free of global side effects. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| env_test.go | ||
| env.go | ||