Some checks failed
Test / Create distribution (push) Successful in 34s
Test / Flake checks (push) Has been cancelled
Test / Hpkg (push) Has been cancelled
Test / Sandbox (race detector) (push) Has been cancelled
Test / Sandbox (push) Has been cancelled
Test / Hakurei (push) Has been cancelled
Test / Hakurei (race detector) (push) Has been cancelled
This is useful for testing. Signed-off-by: Ophestra <cat@gensokyo.uk>
29 lines
1.5 KiB
Go
29 lines
1.5 KiB
Go
package app
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
|
|
"hakurei.app/container/check"
|
|
"hakurei.app/message"
|
|
)
|
|
|
|
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") }
|
|
func (panicDispatcher) stat(string) (os.FileInfo, error) { panic("unreachable") }
|
|
func (panicDispatcher) open(string) (osFile, 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) lookupGroupId(string) (string, error) { panic("unreachable") }
|
|
func (panicDispatcher) cmdOutput(*exec.Cmd) ([]byte, error) { panic("unreachable") }
|
|
func (panicDispatcher) overflowUid(message.Msg) int { panic("unreachable") }
|
|
func (panicDispatcher) overflowGid(message.Msg) int { panic("unreachable") }
|
|
func (panicDispatcher) mustHsuPath() *check.Absolute { panic("unreachable") }
|
|
func (panicDispatcher) fatalf(string, ...any) { panic("unreachable") }
|