uquic/internal/wire/wire_suite_test.go
2020-10-26 09:33:35 +07:00

27 lines
503 B
Go

package wire
import (
"bytes"
"testing"
"github.com/lucas-clemente/quic-go/internal/protocol"
"github.com/lucas-clemente/quic-go/internal/utils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func TestWire(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Wire Suite")
}
const (
// a QUIC version that uses the IETF frame types
versionIETFFrames = protocol.VersionTLS
)
func encodeVarInt(i uint64) []byte {
b := &bytes.Buffer{}
utils.WriteVarInt(b, i)
return b.Bytes()
}