aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/export_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/app/export_test.go')
-rw-r--r--internal/app/export_test.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/app/export_test.go b/internal/app/export_test.go
new file mode 100644
index 00000000..8e524681
--- /dev/null
+++ b/internal/app/export_test.go
@@ -0,0 +1,19 @@
+package app
+
+import (
+ "git.ophivana.moe/security/fortify/helper/bwrap"
+ "git.ophivana.moe/security/fortify/internal"
+ "git.ophivana.moe/security/fortify/internal/system"
+)
+
+func NewWithID(id ID, os internal.System) App {
+ a := new(app)
+ a.id = &id
+ a.os = os
+ return a
+}
+
+func AppSystemBwrap(a App) (*system.I, *bwrap.Config) {
+ v := a.(*app)
+ return v.seal.sys.I, v.seal.sys.bwrap
+}