aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/app_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-22 06:55:02 +0900
committerOphestra <cat@gensokyo.uk>2025-10-22 06:58:45 +0900
commit8accd3b2190d0527ec0d848c877b1a68abaac28c (patch)
tree831d6ce88a4d461fd7c37165dbd1bb1549bf8092 /internal/app/app_test.go
parentc5f59c5488cc529a5a7c7a89e1da56c2b44db16c (diff)
internal/app/shim: use syscall dispatcher
This enables instrumented testing of the shim. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_test.go')
-rw-r--r--internal/app/app_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/app/app_test.go b/internal/app/app_test.go
index 3f3d2983..cb3023be 100644
--- a/internal/app/app_test.go
+++ b/internal/app/app_test.go
@@ -574,10 +574,9 @@ func (s stubOsFileReadCloser) Stat() (fs.FileInfo, error) { panic("attempting to
type stubNixOS struct {
usernameErr map[string]error
+ panicDispatcher
}
-func (k *stubNixOS) new(func(k syscallDispatcher)) { panic("not implemented") }
-
func (k *stubNixOS) getpid() int { return 0xdeadbeef }
func (k *stubNixOS) getuid() int { return 1971 }
func (k *stubNixOS) getgid() int { return 100 }