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
Show whitespace changes
Inline
Side-by-side
p2p/test/util/key.go
View file @
b0ad2072
...
...
@@ -5,13 +5,13 @@ import (
"io"
"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"
ic
"gx/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto"
u
"gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
logging
"gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
logging
"github.com/ipfs/go-log"
ma
"g
x/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ma
"g
ithub.com/jbenet
/go-multiaddr"
)
var
log
=
logging
.
Logger
(
"boguskey"
)
...
...
p2p/test/util/util.go
View file @
b0ad2072
...
...
@@ -3,15 +3,15 @@ package testutil
import
(
"testing"
peer
"github.com/ipfs/go-libp2p-peer"
bhost
"github.com/ipfs/go-libp2p/p2p/host/basic"
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
inet
"github.com/ipfs/go-libp2p/p2p/net"
swarm
"github.com/ipfs/go-libp2p/p2p/net/swarm"
tu
"github.com/ipfs/go-libp2p/testutil"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context
"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr
"
ma
"github.com/jbenet/go-multiaddr
"
context
"golang.org/x/net/context
"
)
func
GenSwarmNetwork
(
t
*
testing
.
T
,
ctx
context
.
Context
)
*
swarm
.
Network
{
...
...
package.json
View file @
b0ad2072
...
...
@@ -143,6 +143,12 @@
"name"
:
"gorocheck"
,
"version"
:
"0.0.0"
},
{
"author"
:
"whyrusleeping"
,
"name"
:
"go-libp2p-loggables"
,
"hash"
:
"QmYqiDbGUGqatbPFie11Py8cnyduoJYqcgKtjfhu1SQLh1"
,
"version"
:
"1.0.1"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"QmPKuU1ohMDaJRJHmatXewCqjZp5wKrD3CK6m9TnCK6XBe"
,
...
...
testutil/gen.go
View file @
b0ad2072
...
...
@@ -8,11 +8,11 @@ import (
"sync"
"testing"
ci
"g
x/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto
"
u
"g
x/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util
"
peer
"g
x/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
u
"g
ithub.com/ipfs/go-ipfs-util
"
ci
"g
ithub.com/ipfs/go-libp2p-crypto
"
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:
...
...
testutil/identity.go
View file @
b0ad2072
...
...
@@ -3,9 +3,9 @@ package testutil
import
(
"testing"
ci
"g
x/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY
/go-libp2p-crypto"
peer
"g
x/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt
/go-libp2p-peer"
ma
"g
x/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz
/go-multiaddr"
ci
"g
ithub.com/ipfs
/go-libp2p-crypto"
peer
"g
ithub.com/ipfs
/go-libp2p-peer"
ma
"g
ithub.com/jbenet
/go-multiaddr"
)
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