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
f351942d
Commit
f351942d
authored
Jun 15, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f0df1b1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+13
-3
No files found.
wcfs/δbtail_test.go
View file @
f351942d
...
@@ -716,7 +716,7 @@ func testΔBTail(t *testing.T, testq chan ΔBTestEntry) {
...
@@ -716,7 +716,7 @@ func testΔBTail(t *testing.T, testq chan ΔBTestEntry) {
// Verify ΔBTail for explicitly provided tree topologies.
// Verify ΔBTail for explicitly provided tree topologies.
func
TestΔBTail
(
t
*
testing
.
T
)
{
func
TestΔBTail
(
t
*
testing
.
T
)
{
// test known cases going through tree1 -> tree2 -> ...
// test known cases going through tree1 -> tree2 -> ...
testv
:=
[]
string
{
testv
:=
[]
interface
{}
{
"T/B:"
,
"T/B:"
,
"T/B1:a"
,
// +1
"T/B1:a"
,
// +1
"T/B1:a,2:b"
,
// +2
"T/B1:a,2:b"
,
// +2
...
@@ -771,8 +771,18 @@ func TestΔBTail(t *testing.T) {
...
@@ -771,8 +771,18 @@ func TestΔBTail(t *testing.T) {
testq
:=
make
(
chan
ΔBTestEntry
)
testq
:=
make
(
chan
ΔBTestEntry
)
go
func
()
{
go
func
()
{
defer
close
(
testq
)
defer
close
(
testq
)
for
_
,
tree
:=
range
testv
{
for
_
,
xtest
:=
range
testv
{
testq
<-
ΔBTestEntry
{
tree
,
nil
}
var
test
ΔBTestEntry
switch
xtest
:=
xtest
.
(
type
)
{
case
string
:
test
.
tree
=
xtest
test
.
kadjOK
=
nil
case
ΔBTestEntry
:
test
=
xtest
default
:
panic
(
fmt
.
Sprintf
(
"BUG: bad type in testv: %T"
,
xtest
))
}
testq
<-
test
}
}
}()
}()
testΔBTail
(
t
,
testq
)
testΔBTail
(
t
,
testq
)
...
...
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