Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mf
go-multiaddr
Commits
2646b1d6
Commit
2646b1d6
authored
Sep 28, 2019
by
Dominic Della Valle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unescaped back-slash target
parent
611d2a4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
convert_test.go
convert_test.go
+6
-6
No files found.
convert_test.go
View file @
2646b1d6
...
...
@@ -66,21 +66,21 @@ func TestFromIP4(t *testing.T) {
}
func
TestFromUnix
(
t
*
testing
.
T
)
{
path
:=
"/
c
:/foo/bar"
path
:=
"/
C
:/foo/bar"
if
runtime
.
GOOS
==
"windows"
{
path
=
"c
:
\f
oo
\b
ar
"
path
=
`C
:\foo\bar
`
}
testConvert
(
t
,
"/unix/
c
:/foo/bar"
,
func
()
(
ma
.
Multiaddr
,
error
)
{
testConvert
(
t
,
"/unix/
C
:/foo/bar"
,
func
()
(
ma
.
Multiaddr
,
error
)
{
return
FromNetAddr
(
&
net
.
UnixAddr
{
Name
:
path
,
Net
:
"unix"
})
})
}
func
TestToUnix
(
t
*
testing
.
T
)
{
path
:=
"/
c
:/foo/bar"
path
:=
"/
C
:/foo/bar"
if
runtime
.
GOOS
==
"windows"
{
path
=
"c
:
\f
oo
\b
ar
"
path
=
`C
:\foo\bar
`
}
testToNetAddr
(
t
,
"/unix/
c
:/foo/bar"
,
"unix"
,
path
)
testToNetAddr
(
t
,
"/unix/
C
:/foo/bar"
,
"unix"
,
path
)
}
func
TestFromIP6
(
t
*
testing
.
T
)
{
...
...
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