mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-28 06:41:53 +02:00
sdk/hints: add badger implementation.
This commit is contained in:
21
sdk/hints/test/badger_test.go
Normal file
21
sdk/hints/test/badger_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/nbd-wtf/go-nostr/sdk/hints/badgerh"
|
||||
)
|
||||
|
||||
func TestBadgerHints(t *testing.T) {
|
||||
path := "/tmp/tmpsdkhintsbadger"
|
||||
os.RemoveAll(path)
|
||||
|
||||
hdb, err := badgerh.NewBadgerHints(path)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer hdb.Close()
|
||||
|
||||
runTestWith(t, hdb)
|
||||
}
|
Reference in New Issue
Block a user