forked from quic-go/quic-go
add the exhaustive linter
This commit is contained in:
@@ -203,6 +203,7 @@ var _ = Describe("Handshake drop tests", func() {
|
||||
var incoming, outgoing int32
|
||||
startListenerAndProxy(func(d quicproxy.Direction, _ []byte) bool {
|
||||
var p int32
|
||||
//nolint:exhaustive
|
||||
switch d {
|
||||
case quicproxy.DirectionIncoming:
|
||||
p = atomic.AddInt32(&incoming, 1)
|
||||
@@ -218,6 +219,7 @@ var _ = Describe("Handshake drop tests", func() {
|
||||
var incoming, outgoing int32
|
||||
startListenerAndProxy(func(d quicproxy.Direction, _ []byte) bool {
|
||||
var p int32
|
||||
//nolint:exhaustive
|
||||
switch d {
|
||||
case quicproxy.DirectionIncoming:
|
||||
p = atomic.AddInt32(&incoming, 1)
|
||||
|
||||
@@ -37,6 +37,7 @@ var _ = Describe("Packetization", func() {
|
||||
proxy, err = quicproxy.NewQuicProxy("localhost:0", &quicproxy.Opts{
|
||||
RemoteAddr: serverAddr,
|
||||
DelayPacket: func(dir quicproxy.Direction, _ []byte) time.Duration {
|
||||
//nolint:exhaustive
|
||||
switch dir {
|
||||
case quicproxy.DirectionIncoming:
|
||||
atomic.AddUint32(&incoming, 1)
|
||||
|
||||
Reference in New Issue
Block a user