From eae3034260b3abbb8da1deeddfef135b36eeb390 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Thu, 19 Dec 2024 21:36:17 +0900 Subject: state: expose aids and use instance id as key Fortify state store instances was specific to aids due to outdated design decisions carried over from the ego rewrite. That no longer makes sense in the current application, so the interface now enables a single store object to manage all transient state. Signed-off-by: Ophestra Umiker --- internal/state/multi_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 internal/state/multi_test.go (limited to 'internal/state/multi_test.go') diff --git a/internal/state/multi_test.go b/internal/state/multi_test.go new file mode 100644 index 00000000..13b2937b --- /dev/null +++ b/internal/state/multi_test.go @@ -0,0 +1,11 @@ +package state_test + +import ( + "testing" + + "git.ophivana.moe/security/fortify/internal/state" +) + +func TestMulti(t *testing.T) { + testStore(t, state.NewMulti(t.TempDir())) +} -- cgit v1.3.1