mirror of https://github.com/shirou/gopsutil
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> |
2 years ago | |
---|---|---|
.. | ||
testdata | ||
mem.go | ||
mem_aix.go | ||
mem_aix_cgo.go | ||
mem_aix_nocgo.go | 3 years ago | |
mem_bsd.go | ||
mem_bsd_test.go | ||
mem_darwin.go | ||
mem_darwin_cgo.go | 3 years ago | |
mem_darwin_nocgo.go | ||
mem_darwin_test.go | ||
mem_fallback.go | ||
mem_freebsd.go | ||
mem_linux.go | ||
mem_linux_test.go | 2 years ago | |
mem_openbsd.go | ||
mem_openbsd_386.go | ||
mem_openbsd_amd64.go | ||
mem_openbsd_arm.go | ||
mem_openbsd_arm64.go | ||
mem_plan9.go | ||
mem_plan9_test.go | 2 years ago | |
mem_solaris.go | 2 years ago | |
mem_solaris_test.go | ||
mem_test.go | 2 years ago | |
mem_windows.go | ||
types_openbsd.go |