Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
51e4b340
Commit
51e4b340
authored
8 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5438d55d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
65 deletions
+65
-65
t/neo/storage/fs1/py/gen-testdata
t/neo/storage/fs1/py/gen-testdata
+3
-3
t/neo/storage/fs1/testdata_expect_test.go
t/neo/storage/fs1/testdata_expect_test.go
+62
-62
No files found.
t/neo/storage/fs1/py/gen-testdata
View file @
51e4b340
...
@@ -160,13 +160,13 @@ def main():
...
@@ -160,13 +160,13 @@ def main():
plen
=
dh
.
plen
plen
=
dh
.
plen
if
plen
==
0
:
if
plen
==
0
:
rawdata
=
p64
(
dh
.
back
)
# back-pointer or 0 (= delete)
rawdata
=
p64
(
dh
.
back
)
# back-pointer or 0 (= delete)
data
=
"
[]byte(%s)"
%
escapeqq
(
drec
.
data
)
# XXX vs .data = None ?
data
=
"
/* from %s */ []byte(%s)"
%
(
hex64
(
drec
.
data_txn
),
escapeqq
(
drec
.
data
)
)
# XXX vs .data = None ?
else
:
else
:
rawdata
=
drec
.
data
rawdata
=
drec
.
data
data
=
"nil"
data
=
"
/* same as ^^^ */
nil"
emit
(
"
\
t
\
t
\
t
\
t
[]byte(%s),"
%
escapeqq
(
rawdata
))
emit
(
"
\
t
\
t
\
t
\
t
[]byte(%s),"
%
escapeqq
(
rawdata
))
emit
(
"
\
t
\
t
\
t
\
t
%s
/* same as ^^^ */
,"
%
data
)
emit
(
"
\
t
\
t
\
t
\
t
%s,"
%
data
)
emit
(
"
\
t
\
t
\
t
},"
)
emit
(
"
\
t
\
t
\
t
},"
)
emit
(
"
\
t
\
t
},"
)
emit
(
"
\
t
\
t
},"
)
...
...
This diff is collapsed.
Click to expand it.
t/neo/storage/fs1/testdata_expect_test.go
View file @
51e4b340
This diff is collapsed.
Click to expand it.
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