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