Browse Source

move testutil up

pull/5/head
Jeromy 9 years ago
parent
commit
4a64aae7c6
  1. 2
      p2p/crypto/key_test.go
  2. 2
      p2p/net/conn/conn_test.go
  3. 2
      p2p/net/conn/dial_test.go
  4. 2
      p2p/net/conn/secure_conn_test.go
  5. 2
      p2p/net/mock/mock_net.go
  6. 2
      p2p/net/mock/mock_test.go
  7. 4
      p2p/net/swarm/dial_test.go
  8. 2
      p2p/net/swarm/simul_test.go
  9. 2
      p2p/net/swarm/swarm_addr_test.go
  10. 2
      p2p/net/swarm/swarm_test.go
  11. 2
      p2p/peer/metrics_test.go
  12. 2
      p2p/peer/peer_test.go
  13. 2
      p2p/test/util/key.go
  14. 2
      p2p/test/util/util.go
  15. 4
      testutil/ci/ci.go
  16. 0
      testutil/ci/jenkins/jenkins.go
  17. 0
      testutil/ci/jenkins/jenkins_test.go
  18. 0
      testutil/ci/travis/travis.go
  19. 0
      testutil/ci/travis/travis_test.go
  20. 0
      testutil/gen.go
  21. 0
      testutil/identity.go
  22. 0
      testutil/latency_config.go
  23. 0
      testutil/rand.go

2
p2p/crypto/key_test.go

@ -4,7 +4,7 @@ import (
. "github.com/ipfs/go-libp2p/p2p/crypto"
"bytes"
tu "util/testutil"
tu "github.com/ipfs/go-libp2p/testutil"
"testing"
)

2
p2p/net/conn/conn_test.go

@ -10,7 +10,7 @@ import (
context "QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
msgio "github.com/jbenet/go-msgio"
travis "util/testutil/ci/travis"
travis "github.com/ipfs/go-libp2p/testutil/ci/travis"
)
func msgioWrap(c Conn) msgio.ReadWriter {

2
p2p/net/conn/dial_test.go

@ -11,7 +11,7 @@ import (
ic "github.com/ipfs/go-libp2p/p2p/crypto"
transport "github.com/ipfs/go-libp2p/p2p/net/transport"
peer "github.com/ipfs/go-libp2p/p2p/peer"
tu "util/testutil"
tu "github.com/ipfs/go-libp2p/testutil"
context "QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma "QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"

2
p2p/net/conn/secure_conn_test.go

@ -8,7 +8,7 @@ import (
"time"
ic "github.com/ipfs/go-libp2p/p2p/crypto"
travis "util/testutil/ci/travis"
travis "github.com/ipfs/go-libp2p/testutil/ci/travis"
context "QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
)

2
p2p/net/mock/mock_net.go

@ -11,7 +11,7 @@ import (
inet "github.com/ipfs/go-libp2p/p2p/net"
peer "github.com/ipfs/go-libp2p/p2p/peer"
p2putil "github.com/ipfs/go-libp2p/p2p/test/util"
testutil "util/testutil"
testutil "github.com/ipfs/go-libp2p/testutil"
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
goprocessctx "QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess/context"

2
p2p/net/mock/mock_test.go

@ -12,7 +12,7 @@ import (
inet "github.com/ipfs/go-libp2p/p2p/net"
peer "github.com/ipfs/go-libp2p/p2p/peer"
protocol "github.com/ipfs/go-libp2p/p2p/protocol"
testutil "util/testutil"
testutil "github.com/ipfs/go-libp2p/testutil"
context "QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
detectrace "github.com/jbenet/go-detect-race"

4
p2p/net/swarm/dial_test.go

@ -10,8 +10,8 @@ import (
addrutil "github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
peer "github.com/ipfs/go-libp2p/p2p/peer"
testutil "util/testutil"
ci "util/testutil/ci"
testutil "github.com/ipfs/go-libp2p/testutil"
ci "github.com/ipfs/go-libp2p/testutil/ci"
manet "QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
context "QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"

2
p2p/net/swarm/simul_test.go

@ -7,7 +7,7 @@ import (
"time"
peer "github.com/ipfs/go-libp2p/p2p/peer"
ci "util/testutil/ci"
ci "github.com/ipfs/go-libp2p/testutil/ci"
context "QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma "QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"

2
p2p/net/swarm/swarm_addr_test.go

@ -6,7 +6,7 @@ import (
metrics "github.com/ipfs/go-libp2p/p2p/metrics"
addrutil "github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
peer "github.com/ipfs/go-libp2p/p2p/peer"
testutil "util/testutil"
testutil "github.com/ipfs/go-libp2p/testutil"
context "QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma "QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"

2
p2p/net/swarm/swarm_test.go

@ -12,7 +12,7 @@ import (
metrics "github.com/ipfs/go-libp2p/p2p/metrics"
inet "github.com/ipfs/go-libp2p/p2p/net"
peer "github.com/ipfs/go-libp2p/p2p/peer"
testutil "util/testutil"
testutil "github.com/ipfs/go-libp2p/testutil"
context "QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma "QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"

2
p2p/peer/metrics_test.go

@ -7,7 +7,7 @@ import (
"time"
peer "github.com/ipfs/go-libp2p/p2p/peer"
testutil "util/testutil"
testutil "github.com/ipfs/go-libp2p/testutil"
)
func TestLatencyEWMAFun(t *testing.T) {

2
p2p/peer/peer_test.go

@ -9,7 +9,7 @@ import (
ic "github.com/ipfs/go-libp2p/p2p/crypto"
. "github.com/ipfs/go-libp2p/p2p/peer"
u "util"
tu "util/testutil"
tu "github.com/ipfs/go-libp2p/testutil"
b58 "QmNsoHoCVhgXcv1Yg45jtkMgimxorTAN36fV9AQMFXHHAQ/go-base58"
)

2
p2p/test/util/key.go

@ -6,8 +6,8 @@ import (
"testing"
logging "QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
testutil "github.com/ipfs/go-libp2p/testutil"
u "util"
testutil "util/testutil"
ic "github.com/ipfs/go-libp2p/p2p/crypto"
peer "github.com/ipfs/go-libp2p/p2p/peer"

2
p2p/test/util/util.go

@ -8,7 +8,7 @@ import (
inet "github.com/ipfs/go-libp2p/p2p/net"
swarm "github.com/ipfs/go-libp2p/p2p/net/swarm"
peer "github.com/ipfs/go-libp2p/p2p/peer"
tu "util/testutil"
tu "github.com/ipfs/go-libp2p/testutil"
context "QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma "QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"

4
vendor/util/testutil/ci/ci.go → testutil/ci/ci.go

@ -6,8 +6,8 @@ package ci
import (
"os"
jenkins "util/testutil/ci/jenkins"
travis "util/testutil/ci/travis"
jenkins "github.com/ipfs/go-libp2p/testutil/ci/jenkins"
travis "github.com/ipfs/go-libp2p/testutil/ci/travis"
)
// EnvVar is a type to use travis-only env var names with

0
vendor/util/testutil/ci/jenkins/jenkins.go → testutil/ci/jenkins/jenkins.go

0
vendor/util/testutil/ci/jenkins/jenkins_test.go → testutil/ci/jenkins/jenkins_test.go

0
vendor/util/testutil/ci/travis/travis.go → testutil/ci/travis/travis.go

0
vendor/util/testutil/ci/travis/travis_test.go → testutil/ci/travis/travis_test.go

0
vendor/util/testutil/gen.go → testutil/gen.go

0
vendor/util/testutil/identity.go → testutil/identity.go

0
vendor/util/testutil/latency_config.go → testutil/latency_config.go

0
vendor/util/testutil/rand.go → testutil/rand.go

Loading…
Cancel
Save