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
3a16a9d3
Commit
3a16a9d3
authored
Jun 16, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f9e37bd9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+3
-4
No files found.
wcfs/δbtail_test.go
View file @
3a16a9d3
...
...
@@ -557,8 +557,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
xtree
,
err
:=
zconn
.
Get
(
ctx
,
treeRoot
);
X
(
err
)
ztree
:=
xtree
.
(
*
Tree
)
kadjTracked
:=
SetKey
{}
// all keys adjacent to tracked
// trackingMaxKey := false
kadjTracked
:=
SetKey
{}
// kadj[Tracked] (all keys adjacent to tracked)
for
k
:=
range
initialTrackedKeys
{
path
:=
[]
Node
{}
_
,
_
,
err
=
ztree
.
VGet
(
ctx
,
k
,
func
(
node
Node
)
{
...
...
@@ -569,7 +568,6 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
trackFlags
:=
TrackFlags
(
0
)
if
k
==
kInf
{
trackFlags
=
TrackMaxKey
// trackingMaxKey = true
}
δbtail
.
Track
(
path
,
trackFlags
)
...
...
@@ -580,7 +578,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
// k ∈ d12
// k ∈ δT <=>
// k ∈ U kadj
(·)
// k ∈ U kadj
[·]
// ·∈tracking
inδTOK
:=
SetKey
{}
// all keys that should be present in δT
for
k
:=
range
d12
{
...
...
@@ -672,6 +670,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
if
badv
!=
nil
{
emsg
:=
fmt
.
Sprintf
(
"%s ; tracked=%v : δT is wrong:
\n\n
"
,
subj
,
tracked
)
emsg
+=
fmt
.
Sprintf
(
"d12: %v
\n
δT: %v
\n\n
"
,
d12
,
δT
)
emsg
+=
fmt
.
Sprintf
(
"kadj[Tracked]: %v
\n
kadj: %v
\n\n
"
,
kadjTracked
,
kadj
)
emsg
+=
strings
.
Join
(
badv
,
"
\n
"
)
emsg
+=
"
\n
"
//t.Error(emsg)
...
...
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