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
f3ae2f0c
Commit
f3ae2f0c
authored
Jul 11, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c4015163
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
wcfs/internal/zdata/δftail_test.go
wcfs/internal/zdata/δftail_test.go
+5
-2
No files found.
wcfs/internal/zdata/δftail_test.go
View file @
f3ae2f0c
...
@@ -213,6 +213,8 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
...
@@ -213,6 +213,8 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
}
}
xat
:=
map
[
zodb
.
Tid
]
string
{}
// tid > "at<i>"
xat
:=
map
[
zodb
.
Tid
]
string
{}
// tid > "at<i>"
xat
[
δftail
.
Head
()]
=
"at0"
t
.
Logf
(
"# @at0 (%s)"
,
δftail
.
Head
())
// δfstr/vδfstr converts δf/vδf to string taking xat into account
// δfstr/vδfstr converts δf/vδf to string taking xat into account
δfstr
:=
func
(
δf
*
ΔFile
)
string
{
δfstr
:=
func
(
δf
*
ΔFile
)
string
{
...
@@ -311,7 +313,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
...
@@ -311,7 +313,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
xat
[
commit
.
At
]
=
fmt
.
Sprintf
(
"at%d"
,
i
)
xat
[
commit
.
At
]
=
fmt
.
Sprintf
(
"at%d"
,
i
)
t
.
Logf
(
"# → @%s (%s) δT%s δD%s
\t
; %s
\t
δ%s"
,
xat
[
commit
.
At
],
commit
.
At
,
xbtreetest
.
KVTxt
(
test
.
δblkTab
),
test
.
δdataTab
,
tTxt
,
δblk
)
t
.
Logf
(
"# → @%s (%s) δT%s δD%s
\t
; %s
\t
δ%s"
,
xat
[
commit
.
At
],
commit
.
At
,
xbtreetest
.
KVTxt
(
test
.
δblkTab
),
test
.
δdataTab
,
tTxt
,
δblk
)
//
t.Logf("# vδf: %s", vδfstr(vδf))
t
.
Logf
(
"# vδf: %s"
,
vδfstr
(
vδf
))
//fmt.Printf("Zinblk: %v\n", Zinblk)
//fmt.Printf("Zinblk: %v\n", Zinblk)
...
@@ -370,7 +372,8 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
...
@@ -370,7 +372,8 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
t
.
Logf
(
"# forget ≤ @%s"
,
xat
[
revcut
])
t
.
Logf
(
"# forget ≤ @%s"
,
xat
[
revcut
])
δftail
.
ForgetPast
(
revcut
)
δftail
.
ForgetPast
(
revcut
)
vδf
=
vδf
[
1
:
]
vδf
=
vδf
[
1
:
]
//t.Logf("# vδf: %s", vδfstr(vδf))
t
.
Logf
(
"# vδf: %s"
,
vδfstr
(
vδf
))
t
.
Logf
(
"# vδt: %s"
,
vδfstr
(
δftail
.
SliceByFileRev
(
zfile
,
δftail
.
Tail
(),
δftail
.
Head
())))
}
}
// SliceByFileRev
// SliceByFileRev
...
...
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