github.com/tumi8/quic-go@v0.37.4-tum/noninternal/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  })