Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
2322c26a
Commit
2322c26a
authored
Aug 26, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1d22d33c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+2
-2
No files found.
wcfs/δbtail_test.go
View file @
2322c26a
...
...
@@ -976,6 +976,7 @@ func TestΔBTreeAllStructs(t *testing.T) {
maxdepth
:=
2
// XXX -> 3?
maxsplit
:=
1
// XXX -> 2?
n
:=
10
// XXX -> more?
nkeys
:=
5
;
if
testing
.
Short
()
{
nkeys
-=
2
}
// server to generate AllStructs(kv1, kv2, ...)
sg
,
err
:=
StartAllStructsSrv
();
X
(
err
)
...
...
@@ -994,14 +995,13 @@ func TestΔBTreeAllStructs(t *testing.T) {
}
}
rng
:=
rand
.
New
(
rand
.
NewSource
(
seed
))
t
.
Logf
(
"# maxdepth=%d maxsplit=%d n
=%d seed=%d"
,
maxdepth
,
maxsplit
,
n
,
seed
)
t
.
Logf
(
"# maxdepth=%d maxsplit=%d n
keys=%d n=%d seed=%d"
,
maxdepth
,
maxsplit
,
nkeys
,
n
,
seed
)
// generate (kv1, kv2) pairs randomly
// keysv1 and keysv2 are random shuffle of IntSets
var
keysv1
[][]
int
var
keysv2
[][]
int
nkeys
:=
5
;
if
testing
.
Short
()
{
nkeys
-=
2
}
for
keys
:=
range
IntSets
(
nkeys
)
{
keysv1
=
append
(
keysv1
,
keys
)
keysv2
=
append
(
keysv2
,
keys
)
...
...
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