mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-10-11 05:13:47 +02:00
21 lines
294 B
Go
21 lines
294 B
Go
package test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/nbd-wtf/go-nostr/sdk/hints/lmdbh"
|
|
)
|
|
|
|
func TestLMDBHints(t *testing.T) {
|
|
path := "/tmp/tmpsdkhintslmdb"
|
|
os.RemoveAll(path)
|
|
|
|
hdb, err := lmdbh.NewLMDBHints(path)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
defer hdb.Close()
|
|
|
|
runTestWith(t, hdb)
|
|
} |