add a test that checks that each errorcode has a string representation

This commit is contained in:
Lucas Clemente
2016-05-17 00:44:15 +02:00
parent dc2a14a5f7
commit 3cc7d7f289
3 changed files with 45 additions and 6 deletions

View File

@@ -1,12 +1,7 @@
// Package errorcodes defines the error codes in QUIC.
//
package errorcodes
// An ErrorCode in QUIC
type ErrorCode uint32
// The error codes defined by QUIC
// Remeber to run go generate ./... whenever the error codes change.
// Remeber to run `go generate ./...` whenever the error codes change.
//go:generate stringer -type=ErrorCode
const (
InternalError ErrorCode = 1