aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/export_linux_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-28 00:54:44 +0900
committerOphestra <cat@gensokyo.uk>2025-08-28 00:54:44 +0900
commitd0b6852cd7db2bb1214c3267719d3ac108c0a53e (patch)
tree3e40ce5b416cab8026197ea173461c5f4d792317 /internal/app/export_linux_test.go
parentda0459aca1988401c9e8743bedb349d6f8544aa3 (diff)
internal/app: remove app interface
It is very clear at this point that there will not be multiple implementations of App, and the internal/app package will never move out of internal due to hsu. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/export_linux_test.go')
-rw-r--r--internal/app/export_linux_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/app/export_linux_test.go b/internal/app/export_linux_test.go
index 73c9df9a..f7af527f 100644
--- a/internal/app/export_linux_test.go
+++ b/internal/app/export_linux_test.go
@@ -7,17 +7,16 @@ import (
"hakurei.app/system"
)
-func NewWithID(id state.ID, os sys.State) App {
- a := new(app)
+func NewWithID(id state.ID, os sys.State) *App {
+ a := new(App)
a.id = newID(&id)
a.sys = os
return a
}
-func AppIParams(a App, sa SealedApp) (*system.I, *container.Params) {
- v := a.(*app)
+func AppIParams(a *App, sa SealedApp) (*system.I, *container.Params) {
seal := sa.(*outcome)
- if v.outcome != seal || v.id != seal.id {
+ if a.outcome != seal || a.id != seal.id {
panic("broken app/outcome link")
}
return seal.sys, seal.container