unified import path

This commit is contained in:
v2ray committed 2016-08-20 20:55:45 +02:00
1 parent 6a878432dc
commit 07a86f549b
248 files changed
+759 -757

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@ package net
import (
"net"
"github.com/v2ray/v2ray-core/common/log"
"github.com/v2ray/v2ray-core/common/predicate"
"v2ray.com/core/common/log"
"v2ray.com/core/common/predicate"
)
var (
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"net"
"testing"
. "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/testing/assert"
. "v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
)
func TestIPParsing(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"net"
"testing"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/testing/assert"
v2net "v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
)
func TestIPv4Address(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package net_test
import (
"testing"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/testing/assert"
v2net "v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
)
func TestTCPDestination(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"net"
"testing"
. "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/testing/assert"
. "v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
)
func parseCIDR(str string) *net.IPNet {
+1 -1
View File
@@ -3,7 +3,7 @@ package net
import (
"strings"
"github.com/v2ray/v2ray-core/common/collect"
"v2ray.com/core/common/collect"
)
const (
+1 -1
View File
@@ -5,7 +5,7 @@ package net
import (
"encoding/json"
"github.com/v2ray/v2ray-core/common/collect"
"v2ray.com/core/common/collect"
)
func (this *NetworkList) UnmarshalJSON(data []byte) error {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"encoding/json"
"testing"
. "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/testing/assert"
. "v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
)
func TestArrayNetworkList(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"errors"
"strconv"
"github.com/v2ray/v2ray-core/common/serial"
"v2ray.com/core/common/serial"
)
var (
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"strings"
"github.com/v2ray/v2ray-core/common/log"
"v2ray.com/core/common/log"
)
func parseIntPort(data []byte) (Port, error) {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"encoding/json"
"testing"
. "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/testing/assert"
. "v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
)
func TestIntPort(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package net_test
import (
"testing"
. "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/testing/assert"
. "v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
)
func TestPortRangeContains(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package net_test
import (
"testing"
. "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/testing/assert"
. "v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
)
func TestTimeOutSettings(t *testing.T) {