diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-27 00:43:33 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-28 22:00:54 +0900 |
| commit | 5e5826459ed744fc0bd717e0136614365c7a96f3 (patch) | |
| tree | 44c11b329eb750039b6e48cb0afba368874e42d5 /internal/app/state/store_test.go | |
| parent | 4a463b7f032961323baa0c5cc4bac0594a90ec42 (diff) | |
internal/app/state: improve handles internals
This replaces the Store interface with something better reflecting the underlying data format for #19. An implementation of Store is provided on top of the new code to ease transition.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/state/store_test.go')
| -rw-r--r-- | internal/app/state/store_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/app/state/store_test.go b/internal/app/state/store_test.go new file mode 100644 index 00000000..8aa348a8 --- /dev/null +++ b/internal/app/state/store_test.go @@ -0,0 +1,14 @@ +package state_test + +import ( + "log" + "testing" + + "hakurei.app/container/check" + "hakurei.app/internal/app/state" + "hakurei.app/message" +) + +func TestMulti(t *testing.T) { + testStore(t, state.NewMulti(message.NewMsg(log.New(log.Writer(), "multi: ", 0)), check.MustAbs(t.TempDir()))) +} |
