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
4b24bab6
Commit
4b24bab6
authored
May 13, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5d73770d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
13 deletions
+18
-13
wcfs/δbtail.go
wcfs/δbtail.go
+13
-13
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+5
-0
No files found.
wcfs/δbtail.go
View file @
4b24bab6
...
...
@@ -332,10 +332,10 @@ func (tidx trackIndex) verify() {
//
// In other words it removes B nodes from A while still maintaining A as P-connected.
func
(
A
trackIndex
)
DifferenceInplace
(
B
trackIndex
)
{
fmt
.
Printf
(
"
\n\n
DifferenceInplace:
\n
"
)
fmt
.
Printf
(
" A: %s
\n
"
,
A
)
fmt
.
Printf
(
" B: %s
\n
"
,
B
)
defer
fmt
.
Printf
(
"->D: %s
\n
"
,
A
)
//
fmt.Printf("\n\nDifferenceInplace:\n")
//
fmt.Printf(" A: %s\n", A)
//
fmt.Printf(" B: %s\n", B)
//
defer fmt.Printf("->D: %s\n", A)
A
.
verify
()
B
.
verify
()
...
...
@@ -402,10 +402,10 @@ func (A trackIndex) DifferenceInplace(B trackIndex) {
//
// In other words it adds B nodes to A.
func
(
A
trackIndex
)
UnionInplace
(
B
trackIndex
)
{
fmt
.
Printf
(
"
\n\n
UnionInplace:
\n
"
)
fmt
.
Printf
(
" A: %s
\n
"
,
A
)
fmt
.
Printf
(
" B: %s
\n
"
,
B
)
defer
fmt
.
Printf
(
"->U: %s
\n
"
,
A
)
//
fmt.Printf("\n\nUnionInplace:\n")
//
fmt.Printf(" A: %s\n", A)
//
fmt.Printf(" B: %s\n", B)
//
defer fmt.Printf("->U: %s\n", A)
A
.
verify
()
B
.
verify
()
...
...
@@ -439,11 +439,11 @@ func (A trackIndex) UnionInplace(B trackIndex) {
// ApplyΔ applies δ to trackIdx. XXX
func
(
tidx
trackIndex
)
ApplyΔ
(
δ
*
δtrackIndex
)
{
fmt
.
Printf
(
"
\n\n
ApplyΔ
\n
"
)
fmt
.
Printf
(
" A: %s
\n
"
,
tidx
)
fmt
.
Printf
(
" -: %s
\n
"
,
δ
.
Del
)
fmt
.
Printf
(
" +: %s
\n
"
,
δ
.
Add
)
defer
fmt
.
Printf
(
"
\n
->B: %s
\n
"
,
tidx
)
//
fmt.Printf("\n\nApplyΔ\n")
//
fmt.Printf(" A: %s\n", tidx)
//
fmt.Printf(" -: %s\n", δ.Del)
//
fmt.Printf(" +: %s\n", δ.Add)
//
defer fmt.Printf("\n->B: %s\n", tidx)
tidx
.
verify
()
δ
.
Del
.
verify
()
...
...
wcfs/δbtail_test.go
View file @
4b24bab6
...
...
@@ -1479,6 +1479,11 @@ func TestΔBTail(t *testing.T) {
"T1/T-T2/T-B1:c-B2:c/B0:g"
,
"T1/T-T/B0:g-T/B1:e"
,
// found by AllStructs (trackIdx corruption: oid is pointerd by
// some .parent bu is not present)
"T1/T-T/B0:g-T2/B1:h-B2:g"
,
"T/T1/T-T2/B0:e-B1:f-B2:g"
,
// XXX TODO classify
"T2/B1:a-B7:g"
,
"T2,8/B1:a-B7:g-B9:i"
,
...
...
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