OSDN Git Service

Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git] / vendor / github.com / tendermint / tmlibs / common / net_test.go
diff --git a/vendor/github.com/tendermint/tmlibs/common/net_test.go b/vendor/github.com/tendermint/tmlibs/common/net_test.go
deleted file mode 100644 (file)
index 38d2ae8..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-package common
-
-import (
-       "testing"
-
-       "github.com/stretchr/testify/assert"
-)
-
-func TestProtocolAndAddress(t *testing.T) {
-
-       cases := []struct {
-               fullAddr string
-               proto    string
-               addr     string
-       }{
-               {
-                       "tcp://mydomain:80",
-                       "tcp",
-                       "mydomain:80",
-               },
-               {
-                       "mydomain:80",
-                       "tcp",
-                       "mydomain:80",
-               },
-               {
-                       "unix://mydomain:80",
-                       "unix",
-                       "mydomain:80",
-               },
-       }
-
-       for _, c := range cases {
-               proto, addr := ProtocolAndAddress(c.fullAddr)
-               assert.Equal(t, proto, c.proto)
-               assert.Equal(t, addr, c.addr)
-       }
-}