bbolt_test.go 355 B

12345678910111213141516171819202122
  1. package bbolt
  2. import (
  3. "encoding/json"
  4. "path/filepath"
  5. "testing"
  6. "github.com/TecharoHQ/anubis/lib/store/storetest"
  7. )
  8. func TestImpl(t *testing.T) {
  9. path := filepath.Join(t.TempDir(), "db")
  10. t.Log(path)
  11. data, err := json.Marshal(Config{
  12. Path: path,
  13. })
  14. if err != nil {
  15. t.Fatal(err)
  16. }
  17. storetest.Common(t, Factory{}, json.RawMessage(data))
  18. }