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
69be6230
Commit
69be6230
authored
Jul 09, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a1ade92d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
wcfs/internal/zdata/δftail_test.go
wcfs/internal/zdata/δftail_test.go
+5
-6
No files found.
wcfs/internal/zdata/δftail_test.go
View file @
69be6230
...
...
@@ -39,7 +39,7 @@ package zdata
// b) transition a ZBigFile in ZODB through random .blktab and ZBlk
// states and feed ΔFtail through created database transactions.
//
// TestΔFtail and TestΔFtail implement approaches "a" and "b" correspondingly.
// TestΔFtail and TestΔFtail
Random
implement approaches "a" and "b" correspondingly.
import
(
"context"
...
...
@@ -98,7 +98,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
}
// data built via applying changes from testv
vδf
:=
[]
*
ΔFile
{}
// (rev↑, {}blk)
XXX +.Size?
vδf
:=
[]
*
ΔFile
{}
// (rev↑, {}blk)
blkTab
:=
map
[
int64
]
string
{}
// #blk -> ZBlk<name>
dataTab
:=
map
[
string
]
string
{}
// ZBlk<name> -> data
Zinblk
:=
map
[
string
]
setI64
{}
// ZBlk<name> -> which #blk refer to it
...
...
@@ -169,7 +169,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
δfok
=
&
ΔFile
{
Rev
:
commit
.
At
,
Blocks
:
δblk
,
Size
:
δtree
,
Size
:
δtree
,
// not strictly ok, but matches current ΔFtail code
}
vδf
=
append
(
vδf
,
δfok
)
}
...
...
@@ -177,7 +177,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
xat
[
commit
.
At
]
=
fmt
.
Sprintf
(
"at%d"
,
i
)
t
.
Logf
(
"# → @%s (%s) δT%s δD%s
\t
; %s"
,
xat
[
commit
.
At
],
commit
.
At
,
xbtreetest
.
KVTxt
(
test
.
δblkTab
),
test
.
δdataTab
,
tTxt
)
//
fmt.Printf("Zinblk: %v\n", Zinblk)
//
fmt.Printf("Zinblk: %v\n", Zinblk)
// update δftail
δF
,
err
:=
δftail
.
Update
(
commit
.
ΔZ
);
X
(
err
)
...
...
@@ -227,7 +227,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
t
.
Errorf
(
".trackSetZBlk:
\n
~have: %v
\n
want: %v"
,
trackZinblk
,
Zinblk
)
}
// XXX Forge
Past configure
threshold
// XXX Forge
tPast configured
threshold
// XXX verify SliceByFileRev + LastBlkRev
}
}
...
...
@@ -264,7 +264,6 @@ func TestΔFtail(t *testing.T) {
// XXX more
// found by TestΔFtailRandom
{
δT
{
1
:
a
,
6
:
i
,
7
:
d
,
8
:
e
},
δD
(
a
,
c
,
e
,
f
,
g
,
h
,
i
,
j
)},
}
...
...
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