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
336 B
Go
Raw Normal View History

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