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
fac2b31d
Commit
fac2b31d
authored
Jul 09, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b81173f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
wcfs/internal/xbtree/xbtreetest/treegen.py
wcfs/internal/xbtree/xbtreetest/treegen.py
+1
-1
wcfs/internal/zdata/δftail_test.go
wcfs/internal/zdata/δftail_test.go
+5
-0
No files found.
wcfs/internal/xbtree/xbtreetest/treegen.py
View file @
fac2b31d
...
...
@@ -420,7 +420,7 @@ def diff(d1, d2): # -> [] of (k,v) to change; DEL means del[k]
# diff = [] of (k,v) to change; DEL means del[k]
def
patch
(
d
,
diff
,
verify
):
for
(
k
,
v
)
in
diff
:
if
v
is
DEL
:
if
v
==
DEL
:
del
d
[
k
]
else
:
d
[
k
]
=
v
...
...
wcfs/internal/zdata/δftail_test.go
View file @
fac2b31d
...
...
@@ -133,6 +133,8 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
Zinblk
[
zblk
]
=
inblk
}
inblk
.
Add
(
blk
)
}
else
{
delete
(
blkTab
,
blk
)
}
// update δblk due to change in blkTab
...
...
@@ -251,6 +253,9 @@ func TestΔFtail(t *testing.T) {
{
δT
{},
δD
(
c
)},
{
δT
{
2
:
c
},
δD
(
a
,
b
)},
// clear the tree
{
δT
{
1
:
ø
,
2
:
ø
},
δD
()},
// i is first associated with file, but later unlinked from it
// then i is changed -> the file should no be in δF
{
δT
{
5
:
i
},
δD
()},
...
...
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