Commit 1b403119 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ae2730be
...@@ -440,6 +440,7 @@ func treediff(ctx context.Context, root zodb.Oid, δZT SetOid, trackIdx map[zodb ...@@ -440,6 +440,7 @@ func treediff(ctx context.Context, root zodb.Oid, δZT SetOid, trackIdx map[zodb
// XXX zconnX -> a, b ? // XXX zconnX -> a, b ?
fmt.Printf("treediff %s δZT: %v\n", root, δZT) fmt.Printf("treediff %s δZT: %v\n", root, δZT)
defer fmt.Printf("\n")
// XXX δZT -> δZTC (all changed nodes are connected) // XXX δZT -> δZTC (all changed nodes are connected)
// e.g. t₀->t₁->b₂ δZ={t₀ b₂} -> δZC=δZ+{t₁} // e.g. t₀->t₁->b₂ δZ={t₀ b₂} -> δZC=δZ+{t₁}
......
...@@ -723,6 +723,7 @@ func testΔBTail(t *testing.T, testq chan ΔBTestEntry) { ...@@ -723,6 +723,7 @@ func testΔBTail(t *testing.T, testq chan ΔBTestEntry) {
xkv2 := XGetTree(db, at2, tg.treeRoot) xkv2 := XGetTree(db, at2, tg.treeRoot)
subj := fmt.Sprintf("%s -> %s", tree1, tree2) subj := fmt.Sprintf("%s -> %s", tree1, tree2)
fmt.Printf("\n\n\n**** %s ****\n\n\n", subj)
xverifyΔBTail(t, subj, db, tg.treeRoot, at1,at2, xkv1,xkv2, δZ, test.kadjOK) xverifyΔBTail(t, subj, db, tg.treeRoot, at1,at2, xkv1,xkv2, δZ, test.kadjOK)
at1 = at2 at1 = at2
...@@ -752,6 +753,7 @@ func TestΔBTail(t *testing.T) { ...@@ -752,6 +753,7 @@ func TestΔBTail(t *testing.T) {
// test known cases going through tree1 -> tree2 -> ... // test known cases going through tree1 -> tree2 -> ...
testv := []interface{} { testv := []interface{} {
///*
"T/B:", "T/B:",
// +1 // +1
...@@ -770,6 +772,7 @@ func TestΔBTail(t *testing.T) { ...@@ -770,6 +772,7 @@ func TestΔBTail(t *testing.T) {
A{1: K(1,2), A{1: K(1,2),
2: K(1,2), 2: K(1,2),
oo: K(1,2)}), oo: K(1,2)}),
//*/
// 2: b->c // 2: b->c
Δ("T/B2:c", Δ("T/B2:c",
......
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