mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-13 11:35:52 +01:00
19 lines
437 B
Go
19 lines
437 B
Go
package pebbledb
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/btcsuite/btcd/database/engine"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestSuitePebbleDB(t *testing.T) {
|
|
engine.TestSuiteEngine(t, func() engine.Engine {
|
|
dbPath := filepath.Join(t.TempDir(), "pebbledb-testsuite")
|
|
|
|
pebbledb, err := NewDB(dbPath, true, 0, 0)
|
|
require.NoErrorf(t, err, "failed to create pebbledb")
|
|
return pebbledb
|
|
})
|
|
}
|