forked from quic-go/quic-go
19 lines
645 B
Go
19 lines
645 B
Go
package protocol
|
|
|
|
import (
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Describe("Encryption Level", func() {
|
|
It("has the correct string representation", func() {
|
|
Expect(EncryptionUnspecified.String()).To(Equal("unknown"))
|
|
Expect(EncryptionUnencrypted.String()).To(Equal("unencrypted"))
|
|
Expect(EncryptionSecure.String()).To(Equal("encrypted (not forward-secure)"))
|
|
Expect(EncryptionForwardSecure.String()).To(Equal("forward-secure"))
|
|
Expect(EncryptionInitial.String()).To(Equal("Initial"))
|
|
Expect(EncryptionHandshake.String()).To(Equal("Handshake"))
|
|
Expect(Encryption1RTT.String()).To(Equal("1-RTT"))
|
|
})
|
|
})
|