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
b2757853
Commit
b2757853
authored
Jul 06, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
998fad3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
go/zodb/storage/zeo/zeo_test.go
go/zodb/storage/zeo/zeo_test.go
+0
-27
No files found.
go/zodb/storage/zeo/zeo_test.go
View file @
b2757853
...
@@ -144,26 +144,6 @@ func (z *ZEOPySrv) Encoding() byte {
...
@@ -144,26 +144,6 @@ func (z *ZEOPySrv) Encoding() byte {
// ----------------
// ----------------
/*
// withZEOPySrv spawns new ZEO/py server and runs f in that environment.
func withZEOPySrv(t *testing.T, opt ZEOPyOptions, f func(zpy *ZEOPySrv)) {
X := mkFatalIf(t)
t.Helper()
needZEOpy(t)
work := xtempdir(t)
defer os.RemoveAll(work)
fs1path := work + "/1.fs"
zpy, err := StartZEOPySrv(fs1path, opt); X(err)
defer func() {
err := zpy.Close(); X(err)
}()
f(zpy)
}
*/
// tOptions represents options for testing.
// tOptions represents options for testing.
type
tOptions
struct
{
type
tOptions
struct
{
Preload
string
// preload database from this location
Preload
string
// preload database from this location
...
@@ -200,7 +180,6 @@ func withZEOSrv(t *testing.T, f func(t *testing.T, zsrv ZEOSrv), optv ...tOption
...
@@ -200,7 +180,6 @@ func withZEOSrv(t *testing.T, f func(t *testing.T, zsrv ZEOSrv), optv ...tOption
// ZEO/py
// ZEO/py
t
.
Run
(
fmt
.
Sprintf
(
"py/msgpack=%v"
,
msgpack
),
func
(
t
*
testing
.
T
)
{
t
.
Run
(
fmt
.
Sprintf
(
"py/msgpack=%v"
,
msgpack
),
func
(
t
*
testing
.
T
)
{
needZEOpy
(
t
)
needZEOpy
(
t
)
withFS1
(
t
,
func
(
fs1path
string
)
{
withFS1
(
t
,
func
(
fs1path
string
)
{
X
:=
mkFatalIf
(
t
)
X
:=
mkFatalIf
(
t
)
...
@@ -211,12 +190,6 @@ func withZEOSrv(t *testing.T, f func(t *testing.T, zsrv ZEOSrv), optv ...tOption
...
@@ -211,12 +190,6 @@ func withZEOSrv(t *testing.T, f func(t *testing.T, zsrv ZEOSrv), optv ...tOption
f
(
t
,
zpy
)
f
(
t
,
zpy
)
})
})
/*
withZEOPySrv(t, ZEOPyOptions{msgpack: msgpack}, func(zpy *ZEOPySrv) {
f(t, zpy)
})
*/
})
})
// TODO ZEO/go
// TODO ZEO/go
...
...
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