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
78a3503a
Commit
78a3503a
authored
Jun 01, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
205c6247
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+3
-12
No files found.
wcfs/δbtail_test.go
View file @
78a3503a
...
...
@@ -305,7 +305,7 @@ func xverifyΔBTail1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, at1,at2 zodb.
// - in tracked set -> must be present in δT
// - outside tracked set -> may be present in δT
//
subset
//
δT is subset of d12
for
k
:=
range
δT
{
_
,
ind12
:=
d12
[
k
]
if
ind12
{
...
...
@@ -313,11 +313,10 @@ func xverifyΔBTail1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, at1,at2 zodb.
}
}
// all keys from d12/tracked are in δT
// k ∈ tracked set -> must be present in δT
// k ∉ tracked set -> may be present in δT
for
k
,
v
:=
range
d12
{
_
,
inδT
:=
δT
[
k
]
// k ∈ tracked set -> must be present in δT
// k ∉ tracked set -> may be present in δT
if
initialTrackedKeys
.
Has
(
k
)
{
if
!
inδT
{
badf
(
"δT: missing key %s"
,
k
)
...
...
@@ -330,14 +329,6 @@ func xverifyΔBTail1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, at1,at2 zodb.
}
}
//for (k,v) in d12:
// if k in initialTrackedKeys:
// assert k in δT
// assert δT[k] == v
// else:
// if k in δT:
// assert δT[k] == v
if
badv
!=
nil
{
emsg
:=
fmt
.
Sprintf
(
"d12: %v
\n
δT: %v
\n\n
"
,
d12
,
δT
)
emsg
+=
strings
.
Join
(
badv
,
"
\n
"
)
...
...
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