commit 8f06e6a16fbf3b2500c651a5a24d95b60dc895a1 parent d3f8ea8a80c74f5b96fa01549ee9e45de3123d44 Author: lash <dev@holbrook.no> Date: Wed, 11 Sep 2024 03:43:14 +0100 Test coverage for fsdb and gdbm over 80% Diffstat:
M | db/db_test.go | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/db/db_test.go b/db/db_test.go @@ -1 +1,13 @@ package db + +func TestDbBase(t *testing.T) { + store := NewDbBase() + store.SetPrefix(USERDATA_STATE) + if !store.Prefix() == USERDATA_STATE { + t.Fatal("expected %d, got %d", USERDATA_STATE, store.Prefix()) + } + l, err := store.SetLanguage(lang.LanguageFromCode("nor")) + if err != nil { + t.Fatal(err) + } +}