1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-10 06:16:53 -05:00
v2fly/proxy/vmess/protocol/vmess_fuzz_test.go

16 lines
294 B
Go
Raw Normal View History

2015-11-09 18:05:25 -05:00
package protocol
import (
"crypto/rand"
"testing"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user/testing/mocks"
)
func TestVMessRequestReader(t *testing.T) {
reader := NewVMessRequestReader(&mocks.StaticUserSet{})
for i := 0; i < 10000000; i++ {
reader.Read(rand.Reader)
}
}