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
333b6877
Commit
333b6877
authored
Jun 22, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7e7f0f94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
wcfs/internal/xbtree/δbtail_test.go
wcfs/internal/xbtree/δbtail_test.go
+17
-7
No files found.
wcfs/internal/xbtree/δbtail_test.go
View file @
333b6877
...
...
@@ -834,6 +834,19 @@ func xverifyΔBTail_Update1(t *testing.T, subj string, db *zodb.DB, treeRoot zod
δbtail
.
assertTrack
(
t
,
"2"
,
trackSet2
,
ø
)
// assert δtkeycov == δ(tkeyCov1, tkeyCov2)
δtkeycovOK
:=
tkeyCov2
.
Difference
(
tkeyCov1
)
fmt
.
Printf
(
"tkeyCov1: %s
\n
"
,
tkeyCov1
)
fmt
.
Printf
(
"tkeyCov2: %s
\n
"
,
tkeyCov2
)
fmt
.
Printf
(
"δtkeycov: %s
\n
"
,
δtkeycovOK
)
δtkeycov
:=
&
RangedKeySet
{}
if
__
,
ok
:=
δB1
.
ByRoot
[
treeRoot
];
ok
{
δtkeycov
=
__
.
δtkeycov1
}
if
!
δtkeycov
.
Equal
(
δtkeycovOK
)
{
badf
(
"δtkeycov wrong:
\n
have: %s
\n
want: %s"
,
δtkeycov
,
δtkeycovOK
)
}
// assert δB.ByRoot == {treeRoot -> ...} if δTok != ø
// == ø if δTok == ø
rootsOK
:=
SetOid
{}
...
...
@@ -852,13 +865,6 @@ func xverifyΔBTail_Update1(t *testing.T, subj string, db *zodb.DB, treeRoot zod
return
}
// assert δtkeycov == δ(tkeyCov1, tkeyCov2)
δtkeycovOK
:=
tkeyCov2
.
Difference
(
tkeyCov1
)
δtkeycov
:=
δB1
.
ByRoot
[
treeRoot
]
.
δtkeycov1
if
!
δtkeycov
.
Equal
(
δtkeycovOK
)
{
badf
(
"δtkeycov wrong:
\n
have: %s
\n
want: %s"
,
δtkeycov
,
δtkeycovOK
)
}
// δT <- δB
δToid
:=
δB
.
ΔByRoot
[
treeRoot
]
// {} k -> δoid
...
...
@@ -1686,6 +1692,10 @@ func TestΔBTail(t *testing.T) {
"T/T/B0:a"
,
"T/B0:a"
,
// δtkeycov grows due to change in parent tree only
"T3/B1:a,2:b-B8:c,9:d"
,
"T7/B1:a,2:b-B8:c,9:d"
,
// "T/T/T/B1:a,2:b",
// "T/T/B1:a",
...
...
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