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
811f8864
Commit
811f8864
authored
Sep 01, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d9842e52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+8
-6
No files found.
wcfs/δbtail_test.go
View file @
811f8864
...
...
@@ -590,7 +590,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
}
}
//
XXX verify δbtail trackIdx
against @at1
//
verify δbtail.holeIdx
against @at1
// holes1 = tracked1 \ kv1
holes1
:=
SetKey
{}
for
k
:=
range
initialTrackedKeys
{
...
...
@@ -603,7 +603,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
badf
(
"δbtail.holeIdx1 wrong ; holeIdx=%v holeIdxOK=%v"
,
δbtail
.
holeIdx
,
holes1
)
}
// XXX verify δbtail
holeIdx
against @at1
// XXX verify δbtail
trackIdx
against @at1
// δB <- δZ
δB
,
err
:=
δbtail
.
Update
(
δZ
);
X
(
err
)
...
...
@@ -612,18 +612,20 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
return
}
// verify δbtail.holeIdx against @at2
// holes2 = tracked2 \ kv2 ( = kadj[tracked1] \ kv2)
holes2
:=
SetKey
{}
for
k
:=
range
kadjTracked
{
if
k
==
kInf
{
continue
// ∞ is translated to maxk2
}
_
,
keyin2
:=
xkv2
.
Get
(
k
)
.
kv
[
k
]
if
!
keyin2
{
holes2
.
Add
(
k
)
}
}
// XXX verify
/* XXX reenable
if !reflect.DeepEqual(holes2, δbtail.holeIdx.SetKey) {
badf("δbtail.holeIdx2 wrong ; holeIdx=%v holeIdxOK=%v", δbtail.holeIdx, holes2)
}
*/
// XXX verify δbtail index consistency against @at2
// XXX verify that removed keys remain in trackedIdx (holes), so that e.g.
...
...
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