Commit e78a9aff authored by linj's avatar linj

test order table v2

parent e39dcfce
...@@ -65,3 +65,15 @@ func TestListAll(t *testing.T) { ...@@ -65,3 +65,15 @@ func TestListAll(t *testing.T) {
t.Log(kvs) t.Log(kvs)
ldb.Close() ldb.Close()
} }
func TestListV2All(t *testing.T) {
dir, ldb, tdb := util.CreateTestDB()
t.Log(dir, ldb, tdb)
odb := NewOrderTableV2(tdb)
odb.Add(order1)
odb.Add(order2)
kvs, err := odb.Save()
assert.Nil(t, err)
t.Log(kvs)
ldb.Close()
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment