aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/export_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-02 04:54:34 +0900
committerOphestra <cat@gensokyo.uk>2025-09-02 04:54:34 +0900
commit6f719bc3c19d56279d2d76d3bcf8fb66ace2d2fb (patch)
tree6e9e84fd6f382fa823c87a70a0df0284dc127250 /internal/app/export_test.go
parent1b5d20a39b2c5720d83a8eaf3d2227deb46a7c0d (diff)
system: update doc commands and remove mutex
The mutex is not really doing anything, none of these methods make sense when called concurrently anyway. The copylocks analysis is still satisfied by the noCopy struct. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/export_test.go')
-rw-r--r--internal/app/export_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/app/export_test.go b/internal/app/export_test.go
index b7ee7f73..3e5db9fb 100644
--- a/internal/app/export_test.go
+++ b/internal/app/export_test.go
@@ -1,17 +1,16 @@
package app
import (
+ "context"
+
"hakurei.app/container"
"hakurei.app/internal/app/state"
"hakurei.app/internal/sys"
"hakurei.app/system"
)
-func NewWithID(id state.ID, os sys.State) *App {
- a := new(App)
- a.id = newID(&id)
- a.sys = os
- return a
+func NewWithID(ctx context.Context, id state.ID, os sys.State) *App {
+ return &App{id: newID(&id), sys: os, ctx: ctx}
}
func AppIParams(a *App, seal *Outcome) (*system.I, *container.Params) {