Catchup to python-herald schema. Plus lots of refactoring. #49
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@ import (
|
||||||
"github.com/linxGnu/grocksdb"
|
"github.com/linxGnu/grocksdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func TestPrefixRegistry(t *testing.T) {
|
||||||
|
for _, prefix := range prefixes.GetPrefixes() {
|
||||||
|
if prefixes.GetSerializationAPI(prefix) == nil {
|
||||||
|
t.Errorf("prefix %c not registered", prefix)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func testInit(filePath string) (*grocksdb.DB, [][]string, func(), *grocksdb.ColumnFamilyHandle) {
|
func testInit(filePath string) (*grocksdb.DB, [][]string, func(), *grocksdb.ColumnFamilyHandle) {
|
||||||
log.Println(filePath)
|
log.Println(filePath)
|
||||||
file, err := os.Open(filePath)
|
file, err := os.Open(filePath)
|
||||||
|
|
Loading…
Reference in a new issue