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
1ea93ca7
Commit
1ea93ca7
authored
May 11, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
65894b80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
7 deletions
+24
-7
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+24
-7
No files found.
wcfs/δbtail_test.go
View file @
1ea93ca7
...
@@ -884,11 +884,9 @@ func xverifyΔBTail_rebuild(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, t0, t1
...
@@ -884,11 +884,9 @@ func xverifyΔBTail_rebuild(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, t0, t1
fmt
.
Printf
(
"@%s: %v
\n
"
,
xat
[
t1
.
at
],
t1
.
xkv
.
Flatten
())
fmt
.
Printf
(
"@%s: %v
\n
"
,
xat
[
t1
.
at
],
t1
.
xkv
.
Flatten
())
fmt
.
Printf
(
"@%s: %v
\n
"
,
xat
[
t2
.
at
],
t2
.
xkv
.
Flatten
())
fmt
.
Printf
(
"@%s: %v
\n
"
,
xat
[
t2
.
at
],
t2
.
xkv
.
Flatten
())
kadj
01
:=
KAdj
(
t0
,
t1
,
allTestKeys
(
t0
,
t1
,
t2
))
kadj
10
:=
KAdj
(
t1
,
t0
,
allTestKeys
(
t0
,
t1
,
t2
))
kadj
11
:=
KAdj
(
t1
,
t1
,
allTestKeys
(
t0
,
t1
,
t2
))
kadj
21
:=
KAdj
(
t2
,
t1
,
allTestKeys
(
t0
,
t1
,
t2
))
kadj12
:=
KAdj
(
t1
,
t2
,
allTestKeys
(
t0
,
t1
,
t2
))
kadj12
:=
KAdj
(
t1
,
t2
,
allTestKeys
(
t0
,
t1
,
t2
))
kadj22
:=
KAdj
(
t2
,
t2
,
allTestKeys
(
t0
,
t1
,
t2
))
_
=
kadj01
ø
:=
trackIndex
{}
ø
:=
trackIndex
{}
...
@@ -900,10 +898,10 @@ func xverifyΔBTail_rebuild(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, t0, t1
...
@@ -900,10 +898,10 @@ func xverifyΔBTail_rebuild(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, t0, t1
keys1
.
Add
(
tAllKeyv
[
idx1
])
keys1
.
Add
(
tAllKeyv
[
idx1
])
}
}
// δkv1_1 = t1.δxkv / kadj1
1
(keys1)
// δkv1_1 = t1.δxkv / kadj1
0
(keys1)
keys1_
1
:=
kadj11
.
Map
(
keys1
)
keys1_
0
:=
kadj10
.
Map
(
keys1
)
δkv1_1
:=
map
[
Key
]
Δstring
{}
δkv1_1
:=
map
[
Key
]
Δstring
{}
for
k
:=
range
keys1_
1
{
for
k
:=
range
keys1_
0
{
δv
,
ok
:=
t1
.
δxkv
[
k
]
δv
,
ok
:=
t1
.
δxkv
[
k
]
if
ok
{
if
ok
{
δkv1_1
[
k
]
=
δv
δkv1_1
[
k
]
=
δv
...
@@ -941,6 +939,24 @@ func xverifyΔBTail_rebuild(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, t0, t1
...
@@ -941,6 +939,24 @@ func xverifyΔBTail_rebuild(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, t0, t1
keys2
.
Add
(
tRestKeyv2
[
idx2
])
keys2
.
Add
(
tRestKeyv2
[
idx2
])
}
}
// δkv1_2 = t1.δxkv / kadj10(kadj21(kadj12(keys1) | keys2))
// δkv2_2 = t2.δxkv / kadj10(kadj21(kadj12(keys1) | keys2))
keys12_2
:=
keys1_2
.
Union
(
keys2
)
keys12_0
:=
kadj10
.
Map
(
kadj21
.
Map
(
keys12_2
))
δkv1_2
:=
map
[
Key
]
Δstring
{}
δkv2_2
:=
map
[
Key
]
Δstring
{}
for
k
:=
range
keys12_0
{
δv1
,
ok
:=
t1
.
δxkv
[
k
]
if
ok
{
δkv1_2
[
k
]
=
δv1
}
δv2
,
ok
:=
t2
.
δxkv
[
k
]
if
ok
{
δkv2_2
[
k
]
=
δv2
}
}
/*
// δkv1_2 = t1.δxkv / (kadj12(keys1) | kadj22(keys2))
// δkv1_2 = t1.δxkv / (kadj12(keys1) | kadj22(keys2))
// δkv2_2 = t2.δxkv / (kadj12(keys1) | kadj22(keys2))
// δkv2_2 = t2.δxkv / (kadj12(keys1) | kadj22(keys2))
keys2_2 := kadj22.Map(keys2)
keys2_2 := kadj22.Map(keys2)
...
@@ -957,6 +973,7 @@ func xverifyΔBTail_rebuild(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, t0, t1
...
@@ -957,6 +973,7 @@ func xverifyΔBTail_rebuild(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, t0, t1
δkv2_2[k] = δv2
δkv2_2[k] = δv2
}
}
}
}
*/
// t.Run is expensive at this level of nest
// t.Run is expensive at this level of nest
// t.Run(" T"+keys2.String()+";R", func(t *testing.T) {
// t.Run(" T"+keys2.String()+";R", func(t *testing.T) {
...
...
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