vmess_fuzz_test.go 294 B

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