diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-03 18:02:34 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-03 18:02:34 +0900 |
| commit | 0e81817076f4fc8c0e746441bb714fec8db6a211 (patch) | |
| tree | 1c7fad48726aaf38b1261a728819cd10d3147b23 /internal/testsuite/users_stub.go | |
| parent | a492d751367ddf12d4e679f84ce600c6dbeda0dd (diff) | |
internal/testsuite: stub user account lookups
Rosa OS does not have the concept of unix user accounts.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/testsuite/users_stub.go')
| -rw-r--r-- | internal/testsuite/users_stub.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/testsuite/users_stub.go b/internal/testsuite/users_stub.go new file mode 100644 index 00000000..c9088646 --- /dev/null +++ b/internal/testsuite/users_stub.go @@ -0,0 +1,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", + } +} |
