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
5cc04536
Commit
5cc04536
authored
Jun 16, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c8ffa4b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+3
-20
No files found.
wcfs/δbtail_test.go
View file @
5cc04536
...
...
@@ -629,7 +629,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
// δT must be subset of d12.
// changed keys, that are
// - in tracked set -> must be present in δT
(covered by kadj)
// - in tracked set -> must be present in δT
// - outside tracked set -> may be present in δT (kadj gives exact answer)
// XXX use kadj - check exactly whether k is present in δT or not present
...
...
@@ -642,7 +642,8 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
}
}
// XXX comment, see below?
// k ∈ tracked set -> must be present in δT
// k ∉ tracked set -> may be present in δT (kadj gives exact answer)
for
k
:=
range
d12
{
_
,
inδT
:=
δT
[
k
]
if
inδT
&&
!
inδTOK
.
Has
(
k
)
{
...
...
@@ -659,24 +660,6 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
}
}
}
/*
// k ∈ tracked set -> must be present in δT
// k ∉ tracked set -> may be present in δT
// k==max && tracking maxKey -> k must be present in δT
for k := range d12 {
_, inδT := δT[k]
if initialTrackedKeys.Has(k) || (k == maxKey && trackingMaxKey) {
if !inδT {
badf("δT: [%v] is missing", k)
}
}
if inδT {
if δT[k] != d12[k] {
badf("δT[%v] != d12[%v]", k, k)
}
}
}
*/
if
badv
!=
nil
{
emsg
:=
fmt
.
Sprintf
(
"%s ; tracked=%v : δT is wrong:
\n\n
"
,
subj
,
tracked
)
...
...
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