This commit replaces `os.Setenv` with `t.Setenv` in tests. The environment variable is automatically restored to its original value when the test and all its subtests complete. Reference: https://pkg.go.dev/testing#T.Setenv Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> |
||
|---|---|---|
| .. | ||
| color.go | ||
| color_test.go | ||
| console.go | ||
| console_windows.go | ||
| epipe_other.go | ||
| epipe_windows.go | ||
| iostreams.go | ||
| iostreams_test.go | ||
| tty_size.go | ||
| tty_size_windows.go | ||