Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
9f51b6d7
Commit
9f51b6d7
authored
7 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1e98227e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
go/xcommon/xnet/pipenet/pipenet.go
go/xcommon/xnet/pipenet/pipenet.go
+1
-1
go/xcommon/xnet/pipenet/pipenet_test.go
go/xcommon/xnet/pipenet/pipenet_test.go
+1
-0
No files found.
go/xcommon/xnet/pipenet/pipenet.go
View file @
9f51b6d7
...
@@ -131,7 +131,7 @@ type dialReq struct {
...
@@ -131,7 +131,7 @@ type dialReq struct {
//
//
// New does not check whether network name provided is unique.
// New does not check whether network name provided is unique.
func
New
(
name
string
)
*
Network
{
func
New
(
name
string
)
*
Network
{
return
&
Network
{
name
:
name
}
return
&
Network
{
name
:
name
,
hostMap
:
make
(
map
[
string
]
*
Host
)
}
}
}
// Host returns network access point by name
// Host returns network access point by name
...
...
This diff is collapsed.
Click to expand it.
go/xcommon/xnet/pipenet/pipenet_test.go
View file @
9f51b6d7
...
@@ -78,6 +78,7 @@ func xwait(w interface { Wait() error }) {
...
@@ -78,6 +78,7 @@ func xwait(w interface { Wait() error }) {
}
}
func
assertEq
(
t
*
testing
.
T
,
a
,
b
interface
{})
{
func
assertEq
(
t
*
testing
.
T
,
a
,
b
interface
{})
{
t
.
Helper
()
if
!
reflect
.
DeepEqual
(
a
,
b
)
{
if
!
reflect
.
DeepEqual
(
a
,
b
)
{
fmt
.
Printf
(
"not equal:
\n
have: %v
\n
want: %v
\n
"
,
a
,
b
)
fmt
.
Printf
(
"not equal:
\n
have: %v
\n
want: %v
\n
"
,
a
,
b
)
t
.
Errorf
(
"not equal:
\n
have: %v
\n
want: %v"
,
a
,
b
)
t
.
Errorf
(
"not equal:
\n
have: %v
\n
want: %v"
,
a
,
b
)
...
...
This diff is collapsed.
Click to expand it.
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