aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/dispatcher_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-30 00:21:26 +0900
committerOphestra <cat@gensokyo.uk>2025-09-30 00:21:26 +0900
commite58181a930064385c881b7ee1cac4914dd435121 (patch)
treef9ee955ebf054e8a1dcb8d8a3e623a47f0d5ab77 /internal/app/dispatcher_test.go
parent71e70b7b5feb94aab5d99d9a3c2bea54537632c4 (diff)
internal/app/paths: defer extra formatting
This reduces payload size for params to shim. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/dispatcher_test.go')
-rw-r--r--internal/app/dispatcher_test.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/internal/app/dispatcher_test.go b/internal/app/dispatcher_test.go
new file mode 100644
index 00000000..2c7d926f
--- /dev/null
+++ b/internal/app/dispatcher_test.go
@@ -0,0 +1,26 @@
+package app
+
+import (
+ "os"
+ "os/exec"
+
+ "hakurei.app/container"
+)
+
+type panicDispatcher struct{}
+
+func (panicDispatcher) new(func(k syscallDispatcher)) { panic("unreachable") }
+func (panicDispatcher) getuid() int { panic("unreachable") }
+func (panicDispatcher) getgid() int { panic("unreachable") }
+func (panicDispatcher) lookupEnv(string) (string, bool) { panic("unreachable") }
+func (panicDispatcher) stat(string) (os.FileInfo, error) { panic("unreachable") }
+func (panicDispatcher) readdir(string) ([]os.DirEntry, error) { panic("unreachable") }
+func (panicDispatcher) tempdir() string { panic("unreachable") }
+func (panicDispatcher) evalSymlinks(string) (string, error) { panic("unreachable") }
+func (panicDispatcher) lookPath(string) (string, error) { panic("unreachable") }
+func (panicDispatcher) lookupGroupId(string) (string, error) { panic("unreachable") }
+func (panicDispatcher) cmdOutput(*exec.Cmd) ([]byte, error) { panic("unreachable") }
+func (panicDispatcher) overflowUid(container.Msg) int { panic("unreachable") }
+func (panicDispatcher) overflowGid(container.Msg) int { panic("unreachable") }
+func (panicDispatcher) mustHsuPath() *container.Absolute { panic("unreachable") }
+func (panicDispatcher) fatalf(string, ...any) { panic("unreachable") }