diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-10 20:12:05 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-10 20:15:58 +0900 |
| commit | 24de7c50a0ea7000c3a49c56b91db9aa72abdd28 (patch) | |
| tree | aa43fa13b27a88ec153a7b83550c45c7fd1db76e /internal/app/dispatcher_test.go | |
| parent | f6dd9dab6a91c8c39ea2a5afbca50e427e6a21ba (diff) | |
internal/app: relocate state initialisation
This is useful for testing.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/dispatcher_test.go')
| -rw-r--r-- | internal/app/dispatcher_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/app/dispatcher_test.go b/internal/app/dispatcher_test.go index f6d10baa..23a5e523 100644 --- a/internal/app/dispatcher_test.go +++ b/internal/app/dispatcher_test.go @@ -11,6 +11,7 @@ import ( type panicDispatcher struct{} func (panicDispatcher) new(func(k syscallDispatcher)) { panic("unreachable") } +func (panicDispatcher) getpid() int { panic("unreachable") } func (panicDispatcher) getuid() int { panic("unreachable") } func (panicDispatcher) getgid() int { panic("unreachable") } func (panicDispatcher) lookupEnv(string) (string, bool) { panic("unreachable") } |
