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
8eeef71a
Commit
8eeef71a
authored
Jun 21, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7d2e4509
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
wcfs/internal/xbtree/δbtail_test.go
wcfs/internal/xbtree/δbtail_test.go
+12
-9
No files found.
wcfs/internal/xbtree/δbtail_test.go
View file @
8eeef71a
...
...
@@ -1131,7 +1131,7 @@ func xverifyΔBTail_rebuild_TR(t *testing.T, db *zodb.DB, δbtail *ΔBtail, tj *
δbtail
.
rebuildAll
()
subj
+=
"+ rebuild"
subj
+=
"
+ rebuild"
δbtail
.
assertTrack
(
t
,
subj
,
trackSetAfterRebuild
,
ø
)
// XXX assert vδB=[δ1/T(keys)]
...
...
@@ -1147,8 +1147,8 @@ func assertΔTtail(t *testing.T, subj string, δbtail *ΔBtail, db *zodb.DB, tj
// XXX +KVAtTail, +lastRevOf
l
:=
len
(
vδTok
)
va
tOK
:=
[]
zodb
.
Tid
{}
v
δTok_
:=
[]
map
[
Key
]
Δstring
{}
va
r
vatOK
[]
zodb
.
Tid
v
ar
vδTok_
[]
map
[
Key
]
Δstring
t0
:=
tj
for
i
:=
0
;
i
<
l
;
i
++
{
// empty vδTok entries means they should be absent in vδT
...
...
@@ -1162,16 +1162,19 @@ func assertΔTtail(t *testing.T, subj string, δbtail *ΔBtail, db *zodb.DB, tj
// lo := t0.at
// hi := tj.at
// vδToid := δbtail.SliceByRootRev(treeRoot, lo, hi)
δTtail
:=
δbtail
.
vδTbyRoot
[
treeRoot
]
vδToid
:=
δTtail
.
vδT
δTtail
,
ok
:=
δbtail
.
vδTbyRoot
[
treeRoot
]
var
vδToid
[]
ΔTree
if
ok
{
vδToid
=
δTtail
.
vδT
}
l
=
len
(
vδToid
)
va
t
:=
make
([]
zodb
.
Tid
,
l
)
v
δT
:=
[]
map
[
Key
]
Δstring
{}
va
r
vat
[]
zodb
.
Tid
v
ar
vδT
[]
map
[
Key
]
Δstring
// atPrev := lo
atPrev
:=
t0
.
at
for
i
,
δToid
:=
range
vδToid
{
vat
[
i
]
=
δToid
.
Rev
for
_
,
δToid
:=
range
vδToid
{
vat
=
append
(
vat
,
δToid
.
Rev
)
δT
:=
XGetδKV
(
db
,
atPrev
,
δToid
.
Rev
,
δToid
.
ΔKV
)
// {} k -> δ(ZBlk(oid).data)
vδT
=
append
(
vδT
,
δT
)
atPrev
=
δToid
.
Rev
...
...
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