github.com/tumi8/quic-go@v0.37.4-tum/noninternal/protocol/encryption_level_test.go (about) 1 package protocol 2 3 import ( 4 . "github.com/onsi/ginkgo/v2" 5 . "github.com/onsi/gomega" 6 ) 7 8 var _ = Describe("Encryption Level", func() { 9 It("doesn't use 0 as a value", func() { 10 // 0 is used in some tests 11 Expect(EncryptionInitial * EncryptionHandshake * Encryption0RTT * Encryption1RTT).ToNot(BeZero()) 12 }) 13 14 It("has the correct string representation", func() { 15 Expect(EncryptionInitial.String()).To(Equal("Initial")) 16 Expect(EncryptionHandshake.String()).To(Equal("Handshake")) 17 Expect(Encryption0RTT.String()).To(Equal("0-RTT")) 18 Expect(Encryption1RTT.String()).To(Equal("1-RTT")) 19 }) 20 })