github.com/metacubex/quic-go@v0.44.1-0.20240520163451-20b689a59136/internal/ackhandler/send_mode_test.go (about) 1 package ackhandler 2 3 import ( 4 . "github.com/onsi/ginkgo/v2" 5 . "github.com/onsi/gomega" 6 ) 7 8 var _ = Describe("Send Mode", func() { 9 It("has a string representation", func() { 10 Expect(SendNone.String()).To(Equal("none")) 11 Expect(SendAny.String()).To(Equal("any")) 12 Expect(SendPacingLimited.String()).To(Equal("pacing limited")) 13 Expect(SendAck.String()).To(Equal("ack")) 14 Expect(SendPTOInitial.String()).To(Equal("pto (Initial)")) 15 Expect(SendPTOHandshake.String()).To(Equal("pto (Handshake)")) 16 Expect(SendPTOAppData.String()).To(Equal("pto (Application Data)")) 17 Expect(SendMode(123).String()).To(Equal("invalid send mode: 123")) 18 }) 19 })