Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
c5a0b724
Commit
c5a0b724
authored
Oct 04, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cd04979f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
go/zodb/btree/testdata/gen-testdata
go/zodb/btree/testdata/gen-testdata
+3
-4
No files found.
go/zodb/btree/testdata/gen-testdata
View file @
c5a0b724
...
@@ -54,8 +54,8 @@ def main2():
...
@@ -54,8 +54,8 @@ def main2():
root
[
'B3'
]
=
B3
=
LOBTree
(
dict
([(
_
,
_
)
for
_
in
range
(
10000
)]))
root
[
'B3'
]
=
B3
=
LOBTree
(
dict
([(
_
,
_
)
for
_
in
range
(
10000
)]))
# T4/T2-T/B1-B2-T7,9/B5-B8-B10
# T4/T2-T/B1-B2-T7,9/B5-B8-B10
(to verify VGet->visit)
# TODO use xbtree.py
when gimport works through modules
# TODO use xbtree.py
after gimport works through modules and xbtree.py is moved to zodb/go
v1
=
LOBucket
([(
1
,
"a"
)])
v1
=
LOBucket
([(
1
,
"a"
)])
v2
=
LOBucket
([(
2
,
"b"
)])
v2
=
LOBucket
([(
2
,
"b"
)])
v5
=
LOBucket
([(
5
,
"c"
)])
v5
=
LOBucket
([(
5
,
"c"
)])
...
@@ -66,7 +66,6 @@ def main2():
...
@@ -66,7 +66,6 @@ def main2():
T79
.
__setstate__
(((
v5
,
7
,
v8
,
9
,
v9
),
v5
))
T79
.
__setstate__
(((
v5
,
7
,
v8
,
9
,
v9
),
v5
))
T
.
__setstate__
(((
T79
,),
v5
))
T
.
__setstate__
(((
T79
,),
v5
))
T4
.
__setstate__
(((
T2
,
4
,
T
),
v1
))
T4
.
__setstate__
(((
T2
,
4
,
T
),
v1
))
root
[
'Bv'
]
=
Bv
=
T4
root
[
'Bv'
]
=
Bv
=
T4
transaction
.
commit
()
transaction
.
commit
()
...
@@ -116,7 +115,7 @@ def main2():
...
@@ -116,7 +115,7 @@ def main2():
vstr
=
[]
vstr
=
[]
for
node
,
lo
,
hi
in
visitv
:
for
node
,
lo
,
hi
in
visitv
:
if
isinstance
(
hi
,
str
):
if
isinstance
(
hi
,
str
):
hi_
=
hi
hi_
=
hi
# oo or noo
else
:
else
:
hi_
=
hi
-
1
hi_
=
hi
-
1
vstr
.
append
(
"{%d, LKeyRange{%s, %s}}"
%
(
u64
(
node
.
_p_oid
),
lo
,
hi_
))
vstr
.
append
(
"{%d, LKeyRange{%s, %s}}"
%
(
u64
(
node
.
_p_oid
),
lo
,
hi_
))
...
...
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