aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/export_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-18 23:05:37 +0900
committerOphestra <cat@gensokyo.uk>2025-02-18 23:07:28 +0900
commit648e1d641a8b0ae7c5bc4899f84b884d4335c97f (patch)
treefdb45d1fedb60487c22a1fceb9d87ba883f03779 /internal/app/export_test.go
parent3c327084d387b316795f45420e8d0c6f9ce71ffe (diff)
app: separate interface from implementation
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/export_test.go')
-rw-r--r--internal/app/export_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/app/export_test.go b/internal/app/export_test.go
index 2e027b83..836e04c6 100644
--- a/internal/app/export_test.go
+++ b/internal/app/export_test.go
@@ -7,14 +7,14 @@ import (
"git.gensokyo.uk/security/fortify/system"
)
-func NewWithID(id fst.ID, os sys.State) App {
+func NewWithID(id fst.ID, os sys.State) fst.App {
a := new(app)
a.id = &id
a.os = os
return a
}
-func AppSystemBwrap(a App) (*system.I, *bwrap.Config) {
+func AppSystemBwrap(a fst.App) (*system.I, *bwrap.Config) {
v := a.(*app)
return v.seal.sys.I, v.seal.sys.bwrap
}