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
11bed7a3
Commit
11bed7a3
authored
Jul 09, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ce3d517f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
wcfs/internal/zdata/δftail_test.go
wcfs/internal/zdata/δftail_test.go
+23
-3
No files found.
wcfs/internal/zdata/δftail_test.go
View file @
11bed7a3
...
...
@@ -228,15 +228,35 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
}
// ForgetPast configured threshold
const
ncut
=
4
if
len
(
vδf
)
>
ncut
{
const
ncut
=
5
if
len
(
vδf
)
>
=
ncut
{
revcut
:=
vδf
[
0
]
.
Rev
t
.
Logf
(
"# forget ≤ @%s"
,
xat
[
revcut
])
δftail
.
ForgetPast
(
revcut
)
vδf
=
vδf
[
1
:
]
}
// XXX verify SliceByFileRev + LastBlkRev
// SliceByFileRev
for
j
:=
0
;
j
<
len
(
vδf
);
j
++
{
for
k
:=
j
;
k
<
len
(
vδf
);
k
++
{
var
lo
zodb
.
Tid
if
j
==
0
{
lo
=
vδf
[
0
]
.
Rev
-
1
}
else
{
lo
=
vδf
[
j
-
1
]
.
Rev
}
hi
:=
vδf
[
k
]
.
Rev
vδf_ok
:=
vδf
[
j
:
k
+
1
]
// [j,k]
vδf_
:=
δftail
.
SliceByFileRev
(
zfile
,
lo
,
hi
)
if
!
reflect
.
DeepEqual
(
vδf_
,
vδf_ok
)
{
t
.
Errorf
(
"slice (@%s,@%s]:
\n
have: %v
\n
want: %v"
,
xat
[
lo
],
xat
[
hi
],
vδf_
,
vδf_ok
)
}
}
}
// XXX LastBlkRev
}
}
...
...
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