forked from quic-go/quic-go
ci: disable exhaustive linter for test files (#4499)
This commit is contained in:
@@ -40,3 +40,6 @@ issues:
|
||||
- path: internal/qtls
|
||||
linters:
|
||||
- depguard
|
||||
- path: _test\.go
|
||||
linters:
|
||||
- exhaustive
|
||||
|
||||
@@ -60,7 +60,6 @@ var _ = Describe("Connection", func() {
|
||||
packet := &coalescedPacket{buffer: buffer}
|
||||
if encLevel != protocol.Encryption1RTT {
|
||||
var typ protocol.PacketType
|
||||
//nolint:exhaustive
|
||||
switch encLevel {
|
||||
case protocol.EncryptionInitial:
|
||||
typ = protocol.PacketTypeInitial
|
||||
@@ -1313,7 +1312,6 @@ var _ = Describe("Connection", func() {
|
||||
var getFrame func(protocol.ByteCount, protocol.Version) wire.Frame
|
||||
|
||||
BeforeEach(func() {
|
||||
//nolint:exhaustive
|
||||
switch encLevel {
|
||||
case protocol.EncryptionInitial:
|
||||
sendMode = ackhandler.SendPTOInitial
|
||||
|
||||
@@ -199,7 +199,6 @@ var _ = Describe("Handshake drop tests", func() {
|
||||
var incoming, outgoing atomic.Int32
|
||||
ln, proxyPort, closeFn := startListenerAndProxy(func(d quicproxy.Direction, _ []byte) bool {
|
||||
var p int32
|
||||
//nolint:exhaustive
|
||||
switch d {
|
||||
case quicproxy.DirectionIncoming:
|
||||
p = incoming.Add(1)
|
||||
@@ -216,7 +215,6 @@ var _ = Describe("Handshake drop tests", func() {
|
||||
var incoming, outgoing atomic.Int32
|
||||
ln, proxyPort, closeFn := startListenerAndProxy(func(d quicproxy.Direction, _ []byte) bool {
|
||||
var p int32
|
||||
//nolint:exhaustive
|
||||
switch d {
|
||||
case quicproxy.DirectionIncoming:
|
||||
p = incoming.Add(1)
|
||||
|
||||
@@ -198,7 +198,6 @@ var _ = Describe("Crypto Setup TLS", func() {
|
||||
clientLoop:
|
||||
for {
|
||||
ev := client.NextEvent()
|
||||
//nolint:exhaustive // only need to process a few events
|
||||
switch ev.Kind {
|
||||
case EventNoEvent:
|
||||
break clientLoop
|
||||
@@ -222,7 +221,6 @@ var _ = Describe("Crypto Setup TLS", func() {
|
||||
serverLoop:
|
||||
for {
|
||||
ev := server.NextEvent()
|
||||
//nolint:exhaustive // only need to process a few events
|
||||
switch ev.Kind {
|
||||
case EventNoEvent:
|
||||
break serverLoop
|
||||
@@ -549,7 +547,6 @@ var _ = Describe("Crypto Setup TLS", func() {
|
||||
var tp *wire.TransportParameters
|
||||
var clientReceived0RTTKeys bool
|
||||
for _, ev := range clientEvents {
|
||||
//nolint:exhaustive // only need to process a few events
|
||||
switch ev.Kind {
|
||||
case EventRestoredTransportParameters:
|
||||
tp = ev.TransportParameters
|
||||
@@ -563,7 +560,6 @@ var _ = Describe("Crypto Setup TLS", func() {
|
||||
|
||||
var serverReceived0RTTKeys bool
|
||||
for _, ev := range serverEvents {
|
||||
//nolint:exhaustive // only need to process a few events
|
||||
switch ev.Kind {
|
||||
case EventReceivedReadKeys:
|
||||
serverReceived0RTTKeys = true
|
||||
@@ -621,7 +617,6 @@ var _ = Describe("Crypto Setup TLS", func() {
|
||||
var tp *wire.TransportParameters
|
||||
var clientReceived0RTTKeys bool
|
||||
for _, ev := range clientEvents {
|
||||
//nolint:exhaustive // only need to process a few events
|
||||
switch ev.Kind {
|
||||
case EventRestoredTransportParameters:
|
||||
tp = ev.TransportParameters
|
||||
|
||||
Reference in New Issue
Block a user