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
a090c92b
Commit
a090c92b
authored
Apr 22, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e888d2ea
Changes
1
Show 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 @
a090c92b
...
@@ -780,10 +780,6 @@ func xverifyΔBTail_Get(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oi
...
@@ -780,10 +780,6 @@ func xverifyΔBTail_Get(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oi
}
}
t
.
Run
(
fmt
.
Sprintf
(
"Get/%s"
,
subj
),
func
(
t
*
testing
.
T
)
{
t
.
Run
(
fmt
.
Sprintf
(
"Get/%s"
,
subj
),
func
(
t
*
testing
.
T
)
{
for
i
:=
range
vt
{
fmt
.
Printf
(
"at%d = @%s
\n
"
,
i
,
vt
[
i
]
.
at
)
}
tkeys
:=
allTestKeys
(
vt
...
)
tkeys
:=
allTestKeys
(
vt
...
)
tkeyv
:=
tkeys
.
SortedKeys
()
tkeyv
:=
tkeys
.
SortedKeys
()
...
@@ -806,6 +802,12 @@ func xverifyΔBTail_Get1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, vt []*tTr
...
@@ -806,6 +802,12 @@ func xverifyΔBTail_Get1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, vt []*tTr
X
:=
exc
.
Raiseif
X
:=
exc
.
Raiseif
// XXX tracked / ?
// XXX tracked / ?
// tid -> "at_i"
xat
:=
map
[
zodb
.
Tid
]
string
{}
for
i
:=
range
vt
{
xat
[
vt
[
i
]
.
at
]
=
fmt
.
Sprintf
(
"at%d"
,
i
)
}
// t1->t2-> ... -> tn
// t1->t2-> ... -> tn
δbtail
:=
NewΔBtail
(
vt
[
0
]
.
at
,
db
)
δbtail
:=
NewΔBtail
(
vt
[
0
]
.
at
,
db
)
for
i
:=
1
;
i
<
len
(
vt
);
i
++
{
for
i
:=
1
;
i
<
len
(
vt
);
i
++
{
...
@@ -853,8 +855,8 @@ func xverifyΔBTail_Get1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, vt []*tTr
...
@@ -853,8 +855,8 @@ func xverifyΔBTail_Get1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, vt []*tTr
if
!
(
v
==
v_
&&
ok
==
ok_
&&
rev
==
rev_
&&
revExact
==
revExact_
)
{
if
!
(
v
==
v_
&&
ok
==
ok_
&&
rev
==
rev_
&&
revExact
==
revExact_
)
{
t
.
Errorf
(
"Get(%d, @%s) ->
\n
have: %s, %v, @%s, %v
\n
want: %s, %v, @%s, %v"
,
t
.
Errorf
(
"Get(%d, @%s) ->
\n
have: %s, %v, @%s, %v
\n
want: %s, %v, @%s, %v"
,
k
,
at
,
k
,
at
,
v
,
ok
,
rev
,
revExact
,
v
,
ok
,
xat
[
rev
]
,
revExact
,
v_
,
ok_
,
rev_
,
revExact_
)
v_
,
ok_
,
xat
[
rev_
]
,
revExact_
)
}
}
}
}
}
}
...
...
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