Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
1b403119
Commit
1b403119
authored
Jun 19, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ae2730be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
wcfs/δbtail.go
wcfs/δbtail.go
+1
-0
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+3
-0
No files found.
wcfs/δbtail.go
View file @
1b403119
...
...
@@ -440,6 +440,7 @@ func treediff(ctx context.Context, root zodb.Oid, δZT SetOid, trackIdx map[zodb
// XXX zconnX -> a, b ?
fmt
.
Printf
(
"treediff %s δZT: %v
\n
"
,
root
,
δZT
)
defer
fmt
.
Printf
(
"
\n
"
)
// XXX δZT -> δZTC (all changed nodes are connected)
// e.g. t₀->t₁->b₂ δZ={t₀ b₂} -> δZC=δZ+{t₁}
...
...
wcfs/δbtail_test.go
View file @
1b403119
...
...
@@ -723,6 +723,7 @@ func testΔBTail(t *testing.T, testq chan ΔBTestEntry) {
xkv2
:=
XGetTree
(
db
,
at2
,
tg
.
treeRoot
)
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
)
at1
=
at2
...
...
@@ -752,6 +753,7 @@ func TestΔBTail(t *testing.T) {
// test known cases going through tree1 -> tree2 -> ...
testv
:=
[]
interface
{}
{
///*
"T/B:"
,
// +1
...
...
@@ -770,6 +772,7 @@ func TestΔBTail(t *testing.T) {
A
{
1
:
K
(
1
,
2
),
2
:
K
(
1
,
2
),
oo
:
K
(
1
,
2
)}),
//*/
// 2: b->c
Δ
(
"T/B2:c"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment