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
68590071
Commit
68590071
authored
Feb 16, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c21c3730
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
t/neo/storage/fs1/gen-testdata
t/neo/storage/fs1/gen-testdata
+11
-0
t/neo/storage/fs1/testdata/1.fs
t/neo/storage/fs1/testdata/1.fs
+0
-0
No files found.
t/neo/storage/fs1/gen-testdata
View file @
68590071
...
...
@@ -7,6 +7,7 @@ from persistent import Persistent
import
transaction
import
struct
import
time
import
random
import
logging
...
...
@@ -14,6 +15,15 @@ import logging
def
oid
(
v
):
return
struct
.
pack
(
'>Q'
,
v
)
# make time.time() predictable
_xtime
=
time
.
mktime
(
time
.
strptime
(
"04 Jan 1979"
,
"%d %b %Y"
))
def
xtime
():
global
_xtime
_xtime
+=
1.1
return
_xtime
time
.
time
=
xtime
def
commit
(
user
,
description
,
extension
):
txn
=
transaction
.
get
()
txn
.
user
=
user
...
...
@@ -44,6 +54,7 @@ def main():
# generate random changes to objects hooked to top-level root by a/b/c/... key
random
.
seed
(
0
)
namev
=
[
_
for
_
in
"abcdefg"
]
for
i
in
range
(
50
):
name
=
random
.
choice
(
namev
)
...
...
t/neo/storage/fs1/testdata/1.fs
View file @
68590071
No preview for this file type
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