aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/state/state_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2024-12-20 19:05:39 +0900
committerOphestra <cat@gensokyo.uk>2024-12-20 19:05:39 +0900
commited10574deacf5a27be9572a94c1ae2e39e11ff6c (patch)
treec4742038f427e340482763e426c784e2418efa7b /internal/state/state_test.go
parent195b717e01ede09cc6fc608ecf72855b49316687 (diff)
state: store join util
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/state/state_test.go')
-rw-r--r--internal/state/state_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/state/state_test.go b/internal/state/state_test.go
index 9af438e1..b19c64b5 100644
--- a/internal/state/state_test.go
+++ b/internal/state/state_test.go
@@ -94,6 +94,14 @@ func testStore(t *testing.T, s state.Store) {
}
})
+ t.Run("join store", func(t *testing.T) {
+ if entries, err := state.Join(s); err != nil {
+ t.Fatalf("Join: error = %v", err)
+ } else if len(entries) != 3 {
+ t.Fatalf("Join(s) = %#v", entries)
+ }
+ })
+
t.Run("clear aid 1", func(t *testing.T) {
do(1, func(c state.Cursor) {
if err := c.Destroy(tc[insertEntryOtherApp].ID); err != nil {