mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2026-04-24 03:39:39 +08:00
29 lines
661 B
Go
29 lines
661 B
Go
package vless_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/e1732a364fed/v2ray_simple/netLayer"
|
|
"github.com/e1732a364fed/v2ray_simple/proxy"
|
|
)
|
|
|
|
func TestVLess0(t *testing.T) {
|
|
proxy.TestTCP("vless", 0, netLayer.RandPortStr(true, false), t)
|
|
}
|
|
|
|
func TestVLess1(t *testing.T) {
|
|
proxy.TestTCP("vless", 1, netLayer.RandPortStr(true, true), t)
|
|
}
|
|
|
|
func TestVLess0_udp(t *testing.T) {
|
|
proxy.TestUDP("vless", 0, netLayer.RandPortStr(true, true), 0, t)
|
|
}
|
|
|
|
func TestVLess1_udp(t *testing.T) {
|
|
proxy.TestUDP("vless", 1, netLayer.RandPortStr(true, true), 0, t)
|
|
}
|
|
|
|
func TestVLess1_udp_multi(t *testing.T) {
|
|
proxy.TestUDP("vless", 1, netLayer.RandPortStr(true, true), 1, t)
|
|
}
|