Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
b0ad2072
Commit
b0ad2072
authored
Apr 27, 2016
by
Jeromy
Browse files
rewrite all package paths to dvcs
parent
0d7301a7
Changes
65
Hide whitespace changes
Inline
Side-by-side
p2p/test/util/key.go
View file @
b0ad2072
...
@@ -5,13 +5,13 @@ import (
...
@@ -5,13 +5,13 @@ import (
"io"
"io"
"testing"
"testing"
u
"github.com/ipfs/go-ipfs-util"
ic
"github.com/ipfs/go-libp2p-crypto"
peer
"github.com/ipfs/go-libp2p-peer"
testutil
"github.com/ipfs/go-libp2p/testutil"
testutil
"github.com/ipfs/go-libp2p/testutil"
ic
"gx/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto"
logging
"github.com/ipfs/go-log"
u
"gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
logging
"gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
ma
"g
x/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"g
ithub.com/jbenet
/go-multiaddr"
)
)
var
log
=
logging
.
Logger
(
"boguskey"
)
var
log
=
logging
.
Logger
(
"boguskey"
)
...
...
p2p/test/util/util.go
View file @
b0ad2072
...
@@ -3,15 +3,15 @@ package testutil
...
@@ -3,15 +3,15 @@ package testutil
import
(
import
(
"testing"
"testing"
peer
"github.com/ipfs/go-libp2p-peer"
bhost
"github.com/ipfs/go-libp2p/p2p/host/basic"
bhost
"github.com/ipfs/go-libp2p/p2p/host/basic"
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
inet
"github.com/ipfs/go-libp2p/p2p/net"
inet
"github.com/ipfs/go-libp2p/p2p/net"
swarm
"github.com/ipfs/go-libp2p/p2p/net/swarm"
swarm
"github.com/ipfs/go-libp2p/p2p/net/swarm"
tu
"github.com/ipfs/go-libp2p/testutil"
tu
"github.com/ipfs/go-libp2p/testutil"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context
"
ma
"github.com/jbenet/go-multiaddr
"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr
"
context
"golang.org/x/net/context
"
)
)
func
GenSwarmNetwork
(
t
*
testing
.
T
,
ctx
context
.
Context
)
*
swarm
.
Network
{
func
GenSwarmNetwork
(
t
*
testing
.
T
,
ctx
context
.
Context
)
*
swarm
.
Network
{
...
...
package.json
View file @
b0ad2072
...
@@ -143,6 +143,12 @@
...
@@ -143,6 +143,12 @@
"name"
:
"gorocheck"
,
"name"
:
"gorocheck"
,
"version"
:
"0.0.0"
"version"
:
"0.0.0"
},
},
{
"author"
:
"whyrusleeping"
,
"name"
:
"go-libp2p-loggables"
,
"hash"
:
"QmYqiDbGUGqatbPFie11Py8cnyduoJYqcgKtjfhu1SQLh1"
,
"version"
:
"1.0.1"
},
{
{
"author"
:
"whyrusleeping"
,
"author"
:
"whyrusleeping"
,
"hash"
:
"QmPKuU1ohMDaJRJHmatXewCqjZp5wKrD3CK6m9TnCK6XBe"
,
"hash"
:
"QmPKuU1ohMDaJRJHmatXewCqjZp5wKrD3CK6m9TnCK6XBe"
,
...
@@ -163,4 +169,4 @@
...
@@ -163,4 +169,4 @@
"license"
:
""
,
"license"
:
""
,
"name"
:
"go-libp2p"
,
"name"
:
"go-libp2p"
,
"version"
:
"2.0.3"
"version"
:
"2.0.3"
}
}
\ No newline at end of file
testutil/gen.go
View file @
b0ad2072
...
@@ -8,11 +8,11 @@ import (
...
@@ -8,11 +8,11 @@ import (
"sync"
"sync"
"testing"
"testing"
ci
"g
x/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto
"
u
"g
ithub.com/ipfs/go-ipfs-util
"
u
"g
x/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util
"
ci
"g
ithub.com/ipfs/go-libp2p-crypto
"
peer
"g
x/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
peer
"g
ithub.com/ipfs
/go-libp2p-peer"
ma
"g
x/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"g
ithub.com/jbenet
/go-multiaddr"
)
)
// ZeroLocalTCPAddress is the "zero" tcp local multiaddr. This means:
// ZeroLocalTCPAddress is the "zero" tcp local multiaddr. This means:
...
...
testutil/identity.go
View file @
b0ad2072
...
@@ -3,9 +3,9 @@ package testutil
...
@@ -3,9 +3,9 @@ package testutil
import
(
import
(
"testing"
"testing"
ci
"g
x/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY
/go-libp2p-crypto"
ci
"g
ithub.com/ipfs
/go-libp2p-crypto"
peer
"g
x/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
peer
"g
ithub.com/ipfs
/go-libp2p-peer"
ma
"g
x/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"g
ithub.com/jbenet
/go-multiaddr"
)
)
type
Identity
interface
{
type
Identity
interface
{
...
...
Prev
1
2
3
4
Next
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