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
2
Merge Requests
2
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
ab729680
Commit
ab729680
authored
May 24, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ed46529d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
go/internal/xtesting/xtesting.go
go/internal/xtesting/xtesting.go
+2
-2
No files found.
go/internal/xtesting/xtesting.go
View file @
ab729680
...
@@ -102,7 +102,7 @@ type ZRawObject struct { // keep in sync with zodb(test).ZRawObject
...
@@ -102,7 +102,7 @@ type ZRawObject struct { // keep in sync with zodb(test).ZRawObject
// ZPyCommitRaw commits new transaction into database @ zurl with raw data specified by objv.
// ZPyCommitRaw commits new transaction into database @ zurl with raw data specified by objv.
//
//
//
Empty
data means "delete object".
//
Nil
data means "delete object".
// The commit is performed via zodbtools/py.
// The commit is performed via zodbtools/py.
func
ZPyCommitRaw
(
zurl
string
,
at
zodb
.
Tid
,
objv
...
ZRawObject
)
(
_
zodb
.
Tid
,
err
error
)
{
func
ZPyCommitRaw
(
zurl
string
,
at
zodb
.
Tid
,
objv
...
ZRawObject
)
(
_
zodb
.
Tid
,
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"%s: zpycommit @%s"
,
zurl
,
at
)
defer
xerr
.
Contextf
(
&
err
,
"%s: zpycommit @%s"
,
zurl
,
at
)
...
@@ -114,7 +114,7 @@ func ZPyCommitRaw(zurl string, at zodb.Tid, objv ...ZRawObject) (_ zodb.Tid, err
...
@@ -114,7 +114,7 @@ func ZPyCommitRaw(zurl string, at zodb.Tid, objv ...ZRawObject) (_ zodb.Tid, err
fmt
.
Fprintf
(
zin
,
"extension %q
\n
"
,
""
)
fmt
.
Fprintf
(
zin
,
"extension %q
\n
"
,
""
)
for
_
,
obj
:=
range
objv
{
for
_
,
obj
:=
range
objv
{
// !data -> delete
// !data -> delete
if
len
(
obj
.
Data
)
==
0
{
if
obj
.
Data
==
nil
{
fmt
.
Fprintf
(
zin
,
"obj %s delete
\n
"
,
obj
.
Oid
)
fmt
.
Fprintf
(
zin
,
"obj %s delete
\n
"
,
obj
.
Oid
)
}
else
{
}
else
{
fmt
.
Fprintf
(
zin
,
"obj %s %d null:00
\n
"
,
obj
.
Oid
,
len
(
obj
.
Data
))
fmt
.
Fprintf
(
zin
,
"obj %s %d null:00
\n
"
,
obj
.
Oid
,
len
(
obj
.
Data
))
...
...
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