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
77783055
Commit
77783055
authored
May 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b5e39d4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+23
-6
No files found.
wcfs/δbtail_test.go
View file @
77783055
...
...
@@ -24,6 +24,7 @@ package main
import
(
"bufio"
"context"
"flag"
"fmt"
"io"
"io/ioutil"
...
...
@@ -662,9 +663,11 @@ func xverifyΔBTail_Update(t *testing.T, subj string, db *zodb.DB, treeRoot zodb
keys
.
Add
(
allKeyv
[
idx
])
}
t
.
Run
(
fmt
.
Sprintf
(
" track=%s"
,
keys
),
func
(
t
*
testing
.
T
)
{
// XXX allocates and keeps too much memory in -verylong
// XXX also not so useful as above "Update/t1->t2" ?
// t.Run(fmt.Sprintf(" track=%s", keys), func(t *testing.T) {
xverifyΔBTail_Update1
(
t
,
subj
,
db
,
treeRoot
,
t1
.
at
,
t2
.
at
,
t1
.
xkv
,
t2
.
xkv
,
t2
.
δZ
,
t2
.
δxkv
,
keys
,
kadj12
)
})
//
})
}
})
}
...
...
@@ -1538,6 +1541,8 @@ func TestΔBTail(t *testing.T) {
}
var
verylongFlag
=
flag
.
Bool
(
"verylong"
,
false
,
`switch tests to run in "very long" mode`
)
// TestΔBTailAllStructs verifies ΔBtail on tree topologies generated by AllStructs.
func
TestΔBTailAllStructs
(
t
*
testing
.
T
)
{
X
:=
exc
.
Raiseif
...
...
@@ -1554,10 +1559,22 @@ func TestΔBTailAllStructs(t *testing.T) {
// imports; https://github.com/pypa/setuptools/issues/510)
// -> we spawn `treegen allstructs` once and use request/response approach.
maxdepth
:=
2
// XXX -> 3?
maxsplit
:=
1
// XXX -> 2?
n
:=
10
// XXX -> more?
nkeys
:=
5
;
if
testing
.
Short
()
{
nkeys
-=
2
}
N
:=
func
(
short
,
medium
,
long
int
)
int
{
// -short
if
testing
.
Short
()
{
return
short
}
// -verylong
if
*
verylongFlag
{
return
long
}
// default
return
medium
}
maxdepth
:=
N
(
2
,
3
,
4
)
maxsplit
:=
N
(
1
,
2
,
2
)
n
:=
N
(
10
,
10
,
100
)
nkeys
:=
N
(
3
,
5
,
10
)
// server to generate AllStructs(kv1, kv2, ...)
sg
,
err
:=
StartAllStructsSrv
();
X
(
err
)
...
...
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