mirror of
https://github.com/luxfi/database.git
synced 2026-10-30 15:01:18 +00:00
26 lines
497 B
Go
26 lines
497 B
Go
// Copyright (C) 2020-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package linkeddb
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/luxfi/database/dbtest"
|
|
"github.com/luxfi/database/memdb"
|
|
)
|
|
|
|
func TestInterface(t *testing.T) {
|
|
for name, test := range dbtest.TestsBasic {
|
|
t.Run(name, func(t *testing.T) {
|
|
db := NewDefault(memdb.New())
|
|
test(t, db)
|
|
})
|
|
}
|
|
}
|
|
|
|
func FuzzKeyValue(f *testing.F) {
|
|
db := NewDefault(memdb.New())
|
|
dbtest.FuzzKeyValue(f, db)
|
|
}
|