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
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
...
@@ -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+δ
// 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
)
/*
_
,
err
=
xtesting
.
ZPyRestore
(
work1
+
"/base.fs"
,
zdumpBase
);
X
(
err
)
txnv, err := xtesting.LoadDBHistory(opt.Preload); X(err)
// XXX vvv change to demo:(base)/(δ)
_ = txnv
_
,
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