- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestCurrent (0.11 sec)
-
src/os/user/user_test.go
hasUSER = os.Getenv("USER") != "" hasHOME = os.Getenv("HOME") != "" ) func checkUser(t *testing.T) { t.Helper() if !userImplemented { t.Skip("user: not implemented; skipping tests") } } func TestCurrent(t *testing.T) { old := userBuffer defer func() { userBuffer = old }() userBuffer = 1 // force use of retry code u, err := Current() if err != nil { if hasCgo || (hasUSER && hasHOME) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 15:59:43 UTC 2023 - 4K bytes - Viewed (0)