Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
527532fc
Commit
527532fc
authored
Mar 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
85a6574c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
go/zodb/storage/demo/demo_test.go
go/zodb/storage/demo/demo_test.go
+23
-4
No files found.
go/zodb/storage/demo/demo_test.go
View file @
527532fc
...
...
@@ -77,9 +77,28 @@ func withDemoStorage(t *testing.T, f func(t *testing.T, dsrv *Storage/*XXX -> Sr
}
// verify on all combinations of preload being split into base+δ
work
:=
xtempdir
(
t
)
defer
os
.
RemoveAll
(
work
)
test1
:=
func
(
δstart
zodb
.
Tid
,
zdumpBase
,
zdumpδ
string
)
{
t
.
Helper
()
t
.
Run
(
fmt
.
Sprintf
(
"δstart=%s"
,
δstart
),
func
(
t
*
testinf
,
T
)
{
t
.
Helper
()
X
:=
xtesting
.
FatalIf
(
t
)
work1
:=
filepath
.
Join
(
work
,
δstart
.
String
())
err
:=
os
.
Mkdir
(
work1
,
0x777
);
X
(
err
)
/*
txnv, err := xtesting.LoadDBHistory(opt.Preload); X(err)
_ = txnv
*/
_
,
err
=
xtesting
.
ZPyRestore
(
work1
+
"/base.fs"
,
zdumpBase
);
X
(
err
)
// XXX vvv change to demo:(base)/(δ)
_
,
err
=
xtesting
.
ZPyRestore
(
work1
+
"/δ.fs"
,
zdumpδ
);
X
(
err
)
d
=
openDemo
(
base
,
δ
);
X
(
err
)
defer
d
.
Close
()
f
(
t
,
d
)
})
}
for
i
:=
0
;
i
<
len
(
txnv
);
i
++
{
δstart
=
txnv
[
i
]
test1
(
δstart
.
tid
,
zdump
[
:
δstart
.
pos
],
zdump
[
δstart
.
pos
:
])
}
test1
(
zodb
.
TidMax
,
zdump
,
""
)
}
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