aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/testsuite/users_stub.go
blob: c9088646290186ad79ab9c384798c6640410c151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//go:build rosa

package testsuite

import "os/user"

// mustLookupId always returns the address of a populated [user.User].
func mustLookupId(uid string) *user.User {
	return &user.User{
		Uid:      uid,
		Gid:      "100",
		Username: "_" + uid,
		HomeDir:  "/proc/nonexistent",
	}
}