forked from quic-go/quic-go
make wire an internal package
This commit is contained in:
25
internal/wire/wire_suite_test.go
Normal file
25
internal/wire/wire_suite_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package wire
|
||||
|
||||
import (
|
||||
"github.com/lucas-clemente/quic-go/internal/utils"
|
||||
"github.com/lucas-clemente/quic-go/protocol"
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestCrypto(t *testing.T) {
|
||||
RegisterFailHandler(Fail)
|
||||
RunSpecs(t, "Wire Suite")
|
||||
}
|
||||
|
||||
const (
|
||||
versionLittleEndian = protocol.Version37 // a QUIC version that uses little endian encoding
|
||||
versionBigEndian = protocol.Version39 // a QUIC version that uses big endian encoding
|
||||
)
|
||||
|
||||
var _ = BeforeSuite(func() {
|
||||
Expect(utils.GetByteOrder(versionLittleEndian)).To(Equal(utils.LittleEndian))
|
||||
Expect(utils.GetByteOrder(versionBigEndian)).To(Equal(utils.BigEndian))
|
||||
})
|
||||
Reference in New Issue
Block a user