Commit 35922706 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent d6f013d7
......@@ -20,5 +20,44 @@
package main
import (
// XXX
"testing"
)
// XXX
func XXX(t *testing.T, tree1, tree2 string) {
// XXX commit tree1
// XXX load tree1 -> get keys for kv1
//
// XXX for all set of {keys} from kv1:
// // prepare initial state with {keys} tracked
// zconn = db.open(at)
// δbtail = NewΔBTail(zconn.At())
// for k in keys:
// v, path = tree.VGet(k)
// δbtail.Track(path)
//
// commit(->tree2)
// δZ = ...
//
// δB = δbtail.Update(δZ)
//
// verify δB has all keys as expected for tracked set
}
func TestΔBTail(t *testing.T) {
// XXX test known cases tree1 -> tree2
testv := []struct { tree1, tree2 string } {
{"T/B", "T/B"},
{"T/B", "T/B1:a"},
// XXX
}
for _, test := range testv {
XXX(t, test.tree1, test.tree2)
XXX(t, test.tree2, test.tree1)
}
}
func TestΔBTreeAllStructs(t *testing.T) {
// XXX given (kv1, kv2) test on automatically generated (tree1 -> tree2)
}
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