vmess_fuzz_test.go 336 B

123456789101112131415
  1. package protocol
  2. import (
  3. "testing"
  4. "github.com/v2ray/v2ray-core/proxy/vmess/protocol/user/testing/mocks"
  5. "github.com/v2ray/v2ray-core/testing/fuzzing"
  6. )
  7. func TestVMessRequestReader(t *testing.T) {
  8. reader := NewVMessRequestReader(&mocks.StaticUserSet{})
  9. for i := 0; i < 1000000; i++ {
  10. reader.Read(fuzzing.RandomReader())
  11. }
  12. }