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
1049ee28
Commit
1049ee28
authored
Jul 07, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2b8fac82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
go/internal/xtesting/xtesting.go
go/internal/xtesting/xtesting.go
+4
-3
No files found.
go/internal/xtesting/xtesting.go
View file @
1049ee28
...
...
@@ -17,7 +17,7 @@
// See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options.
// Package xtesting provides
addons to std package
testing.
// Package xtesting provides
infrastructure for ZODB
testing.
package
xtesting
import
(
...
...
@@ -151,6 +151,7 @@ type Txn struct {
}
// LoadDB loads whole content of a ZODB database.
//
// it returns full history of all transactions with committed data.
func
LoadDB
(
zurl
string
)
(
_
[]
Txn
,
err
error
)
{
xerr
.
Contextf
(
&
err
,
"loaddb %s"
,
zurl
)
...
...
@@ -207,7 +208,7 @@ func LoadDB(zurl string) (_ []Txn, err error) {
return
txnv
,
nil
}
// checkLoad verifies that zdrv.Load(xid) returns expected result
// checkLoad verifies that zdrv.Load(xid) returns expected result
.
func
checkLoad
(
t
*
testing
.
T
,
zdrv
zodb
.
IStorageDriver
,
xid
zodb
.
Xid
,
expect
objState
)
{
t
.
Helper
()
buf
,
tid
,
err
:=
zdrv
.
Load
(
context
.
Background
(),
xid
)
...
...
@@ -398,7 +399,7 @@ func DrvTestWatch(t *testing.T, zurl string, zdrvOpen zodb.DriverOpener) {
// b is syntatic sugar for byte literals.
// b is synta
c
tic sugar for byte literals.
//
// e.g.
//
...
...
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