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
a13d5050
Commit
a13d5050
authored
Mar 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0ac05e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
go/zodb/storage/demo/demo_test.go
go/zodb/storage/demo/demo_test.go
+27
-0
No files found.
go/zodb/storage/demo/demo_test.go
View file @
a13d5050
...
...
@@ -91,6 +91,7 @@ func withDemoStorage(t *testing.T, f func(t *testing.T, dsrv *Storage/*XXX -> Sr
_
,
err
=
xtesting
.
ZPyRestore
(
work1
+
"/base.fs"
,
zdumpBase
);
X
(
err
)
// XXX vvv change to demo:(base)/(δ)
// XXX + explain why (restoring copy without original present fails)
_
,
err
=
xtesting
.
ZPyRestore
(
work1
+
"/δ.fs"
,
zdumpδ
);
X
(
err
)
d
=
openDemo
(
base
,
δ
);
X
(
err
)
...
...
@@ -104,3 +105,29 @@ func withDemoStorage(t *testing.T, f func(t *testing.T, dsrv *Storage/*XXX -> Sr
}
test1
(
zodb
.
TidMax
,
zdump
,
""
)
}
func
TestEmptyDB
(
t
*
testing
.
T
)
{
withDemo
(
t
,
func
(
t
*
testing
.
T
,
dsrv
ZEOSrv
,
d
*
Storage
)
{
xtesting
.
DrvTestEmptyDB
(
t
,
d
)
})
}
func
TestLoad
(
t
*
testing
.
T
)
{
X
:=
xtesting
.
FatalIf
(
t
)
data
:=
"../fs1/testdata/1.fs"
txnvOk
,
err
:=
xtesting
.
LoadDBHistory
(
data
);
X
(
err
)
withDemo
(
t
,
func
(
t
*
testing
.
T
,
zsrv
ZEOSrv
,
d
*
Storage
)
{
xtesting
.
DrvTestLoad
(
t
,
d
,
txnvOk
)
},
tOptions
{
Preload
:
data
,
})
}
func
TestWatch
(
t
*
testing
.
T
)
{
withDemoSrv
(
t
,
func
(
t
*
testing
.
T
,
dsrv
DemoSrv
)
{
xtesting
.
DrvTestWatch
(
t
,
dsrv
.
URL
(),
openByURL
)
})
}
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