From 6309469e933a31a300fbf16d8e77f48dcee402d3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 12 Apr 2025 13:56:41 +0900 Subject: app/instance: wrap internal implementation This reduces the scope of the fst package, which was growing questionably large. Signed-off-by: Ophestra --- internal/state/state_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/state/state_test.go') diff --git a/internal/state/state_test.go b/internal/state/state_test.go index 22fd3cd6..fe7a6cc6 100644 --- a/internal/state/state_test.go +++ b/internal/state/state_test.go @@ -11,6 +11,7 @@ import ( "time" "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/internal/app" "git.gensokyo.uk/security/fortify/internal/state" ) @@ -133,7 +134,7 @@ func testStore(t *testing.T, s state.Store) { } func makeState(t *testing.T, s *state.State, ct io.Writer) { - if err := fst.NewAppID(&s.ID); err != nil { + if err := app.NewAppID(&s.ID); err != nil { t.Fatalf("cannot create dummy state: %v", err) } if err := gob.NewEncoder(ct).Encode(fst.Template()); err != nil { -- cgit v1.3.1