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
35922706
Commit
35922706
authored
May 29, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d6f013d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+40
-1
No files found.
wcfs/δbtail_test.go
View file @
35922706
...
...
@@ -20,5 +20,44 @@
package
main
import
(
// XXX
"testing"
)
// XXX
func
XXX
(
t
*
testing
.
T
,
tree1
,
tree2
string
)
{
// XXX commit tree1
// XXX load tree1 -> get keys for kv1
//
// XXX for all set of {keys} from kv1:
// // prepare initial state with {keys} tracked
// zconn = db.open(at)
// δbtail = NewΔBTail(zconn.At())
// for k in keys:
// v, path = tree.VGet(k)
// δbtail.Track(path)
//
// commit(->tree2)
// δZ = ...
//
// δB = δbtail.Update(δZ)
//
// verify δB has all keys as expected for tracked set
}
func
TestΔBTail
(
t
*
testing
.
T
)
{
// XXX test known cases tree1 -> tree2
testv
:=
[]
struct
{
tree1
,
tree2
string
}
{
{
"T/B"
,
"T/B"
},
{
"T/B"
,
"T/B1:a"
},
// XXX
}
for
_
,
test
:=
range
testv
{
XXX
(
t
,
test
.
tree1
,
test
.
tree2
)
XXX
(
t
,
test
.
tree2
,
test
.
tree1
)
}
}
func
TestΔBTreeAllStructs
(
t
*
testing
.
T
)
{
// XXX given (kv1, kv2) test on automatically generated (tree1 -> tree2)
}
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