Commit e05d236b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4bbc7942
...@@ -362,6 +362,7 @@ func (opt NEOSrvOptions) URLPrefix() string { ...@@ -362,6 +362,7 @@ func (opt NEOSrvOptions) URLPrefix() string {
// ---------------- // ----------------
// tOptions represents options for testing. // tOptions represents options for testing.
// TODO -> xtesting
type tOptions struct { type tOptions struct {
Preload string // preload database with data from this location Preload string // preload database with data from this location
} }
......
...@@ -19,6 +19,34 @@ ...@@ -19,6 +19,34 @@
package demo package demo
// XXX stdtest Demo(data, ø) /*
// XXX stdtest Demo(ø, data) import (
// XXX more? "testing"
"lab.nexedi.com/kirr/neo/go/internal/xtesting"
)
*/
// tOptions represents options for testing.
// TODO -> xtesting
type tOptions struct {
Preload string // preload database with data from this location
}
/*
// withDemoStorage tests f with all kind of demo overlays.
func withDemoStorage(t *testing.T, f func(t *testing.T, dsrv XXX), optv ...tOptions) {
t.Helper()
opt := t.Options{}
if len(optv) > 1 {
panic("multiple tOptions not allowed")
}
if len(optv) == 1 {
opt = optv[0]
}
// verify on all combinations of preload being split into base+δ
txnv, err := xtesting.LoadDBHistory(t.Preload)
}
*/
...@@ -153,7 +153,7 @@ func (z *ZEOPySrv) Encoding() encoding { ...@@ -153,7 +153,7 @@ func (z *ZEOPySrv) Encoding() encoding {
// ---------------- // ----------------
// tOptions represents options for testing. // tOptions represents options for testing.
// XXX dup in NEO // TODO -> xtesting
type tOptions struct { type tOptions struct {
Preload string // preload database with data from this location Preload string // preload database with data from this location
} }
......
...@@ -44,8 +44,7 @@ There are also following simpler ways: ...@@ -44,8 +44,7 @@ There are also following simpler ways:
- neo://<master>/<db> for a NEO database XXX + neos:// ? - neo://<master>/<db> for a NEO database XXX + neos:// ?
- zeo://<host>:<port> for a ZEO database - zeo://<host>:<port> for a ZEO database
- /path/to/file for a FileStorage database - /path/to/file for a FileStorage database
- demo:(zurl_base)/(zurl_δ) for a DemoStorage overlay
- demo:(zurl_base)/(zurl_δ) XXX overlay, DemoStorage ...
Please see zodburi documentation for full details: Please see zodburi documentation for full details:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment