Documentation ¶
Index ¶
- Variables
- func EvaluateResult(expected []Result, actual Result) bool
- func Run(ctx *Context)
- func TestConnectionError(ctx *Context, http2Conn *Http2Conn, codes []http2.ErrCode) (expected []Result, actual Result)
- func TestErrorCode(code http2.ErrCode, expected []http2.ErrCode) bool
- func TestStreamClose(ctx *Context, http2Conn *Http2Conn) (expected []Result, actual Result)
- func TestStreamError(ctx *Context, http2Conn *Http2Conn, codes []http2.ErrCode) (expected []Result, actual Result)
- type Context
- type Http2Conn
- type Result
- type ResultConnectionClose
- type ResultError
- type ResultFrame
- type ResultSkipped
- type ResultStreamClose
- type ResultTestTimeout
- type RunMode
- type TcpConn
- type Test
- type TestCase
- func (tc *TestCase) HandleFunc(handler func(*Context) ([]Result, Result))
- func (tc *TestCase) PrintEphemeralDesc(level int)
- func (tc *TestCase) PrintError(expected []Result, actual Result, level int)
- func (tc *TestCase) PrintResult(level int)
- func (tc *TestCase) PrintSkipped(actual Result, level int)
- func (tc *TestCase) Run(ctx *Context, level int) TestResult
- type TestGroup
- func ConnectionErrorHandlingTestGroup() *TestGroup
- func ConnectionSpecificHeaderFieldsTestGroup() *TestGroup
- func ContinuationTestGroup() *TestGroup
- func DataTestGroup() *TestGroup
- func DefinedSettingsParametersTestGroup() *TestGroup
- func ErrorHandlingTestGroup() *TestGroup
- func ExtendingHttp2TestGroup() *TestGroup
- func FrameSizeTestGroup() *TestGroup
- func GoawayTestGroup() *TestGroup
- func HeaderCompressionAndDecompressionTestGroup() *TestGroup
- func HeadersTestGroup() *TestGroup
- func Http2ConnectionPrefaceTestGroup() *TestGroup
- func HttpHeaderFieldsTestGroup() *TestGroup
- func HttpRequestResponseExchangeTestGroup() *TestGroup
- func InitialFlowControlWindowSizeTestGroup() *TestGroup
- func MalformedRequestsAndResponsesTestGroup() *TestGroup
- func NewTestGroup(section, name string) *TestGroup
- func PingTestGroup() *TestGroup
- func PriorityTestGroup() *TestGroup
- func PseudoHeaderFieldsTestGroup() *TestGroup
- func RequestPseudoHeaderFieldsTestGroup() *TestGroup
- func RstStreamTestGroup() *TestGroup
- func ServerPushTestGroup() *TestGroup
- func SettingsTestGroup() *TestGroup
- func StreamConcurrencyTestGroup() *TestGroup
- func StreamIdentifiersTestGroup() *TestGroup
- func StreamStatesTestGroup() *TestGroup
- func TheFlowControlWindowTestGroup() *TestGroup
- func WindowUpdateTestGroup() *TestGroup
- type TestResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCodeDefault http2.ErrCode = 0xff
View Source
var FlagDefault http2.Flags = 0x0
View Source
var TIMEOUT = errors.New("Timeout")
Functions ¶
func EvaluateResult ¶ added in v0.0.8
func TestConnectionError ¶ added in v0.0.5
func TestErrorCode ¶ added in v0.0.5
func TestStreamClose ¶ added in v0.0.8
Types ¶
type Context ¶
type Context struct { Port int Host string Tls bool TlsConfig *tls.Config Sections map[string]bool Timeout time.Duration }
func (*Context) GetRunMode ¶ added in v0.0.5
type Http2Conn ¶
type Http2Conn struct { HpackEncoder *hpack.Encoder HeaderWriteBuf bytes.Buffer Settings map[http2.SettingID]uint32 // contains filtered or unexported fields }
func CreateHttp2Conn ¶
func (*Http2Conn) EncodeHeader ¶ added in v0.0.4
func (h2Conn *Http2Conn) EncodeHeader(header []hpack.HeaderField) []byte
EncodeHeader encodes header and returns encoded bytes. h2Conn retains encoding context and next call of EncodeHeader will be performed using the same encoding context.
type ResultConnectionClose ¶ added in v0.0.5
type ResultConnectionClose struct{}
func (*ResultConnectionClose) String ¶ added in v0.0.5
func (rcc *ResultConnectionClose) String() string
type ResultError ¶ added in v0.0.5
type ResultError struct {
Error error
}
func (*ResultError) String ¶ added in v0.0.5
func (re *ResultError) String() string
type ResultFrame ¶ added in v0.0.5
func (*ResultFrame) String ¶ added in v0.0.5
func (rf *ResultFrame) String() string
type ResultSkipped ¶ added in v0.0.6
type ResultSkipped struct {
Reason string
}
func (*ResultSkipped) String ¶ added in v0.0.6
func (rs *ResultSkipped) String() string
type ResultStreamClose ¶ added in v0.0.8
type ResultStreamClose struct{}
func (*ResultStreamClose) String ¶ added in v0.0.8
func (rsc *ResultStreamClose) String() string
type ResultTestTimeout ¶ added in v0.0.5
type ResultTestTimeout struct{}
func (*ResultTestTimeout) String ¶ added in v0.0.5
func (ttr *ResultTestTimeout) String() string
type TcpConn ¶
type TcpConn struct {
// contains filtered or unexported fields
}
func CreateTcpConn ¶
type TestCase ¶ added in v0.0.5
func NewTestCase ¶ added in v0.0.5
func (*TestCase) HandleFunc ¶ added in v0.0.5
func (*TestCase) PrintEphemeralDesc ¶ added in v0.0.8
func (*TestCase) PrintError ¶ added in v0.0.5
func (*TestCase) PrintResult ¶ added in v0.0.5
func (*TestCase) PrintSkipped ¶ added in v0.0.6
type TestGroup ¶ added in v0.0.5
func ConnectionErrorHandlingTestGroup ¶ added in v0.0.5
func ConnectionErrorHandlingTestGroup() *TestGroup
func ConnectionSpecificHeaderFieldsTestGroup ¶ added in v0.0.5
func ConnectionSpecificHeaderFieldsTestGroup() *TestGroup
func ContinuationTestGroup ¶ added in v0.0.5
func ContinuationTestGroup() *TestGroup
func DataTestGroup ¶ added in v0.0.5
func DataTestGroup() *TestGroup
func DefinedSettingsParametersTestGroup ¶ added in v0.0.5
func DefinedSettingsParametersTestGroup() *TestGroup
func ErrorHandlingTestGroup ¶ added in v0.0.5
func ErrorHandlingTestGroup() *TestGroup
func ExtendingHttp2TestGroup ¶ added in v0.0.5
func ExtendingHttp2TestGroup() *TestGroup
func FrameSizeTestGroup ¶ added in v0.0.5
func FrameSizeTestGroup() *TestGroup
func GoawayTestGroup ¶ added in v0.0.5
func GoawayTestGroup() *TestGroup
func HeaderCompressionAndDecompressionTestGroup ¶ added in v0.0.5
func HeaderCompressionAndDecompressionTestGroup() *TestGroup
func HeadersTestGroup ¶ added in v0.0.5
func HeadersTestGroup() *TestGroup
func Http2ConnectionPrefaceTestGroup ¶ added in v0.0.5
func Http2ConnectionPrefaceTestGroup() *TestGroup
func HttpHeaderFieldsTestGroup ¶ added in v0.0.5
func HttpHeaderFieldsTestGroup() *TestGroup
func HttpRequestResponseExchangeTestGroup ¶ added in v0.0.5
func HttpRequestResponseExchangeTestGroup() *TestGroup
func InitialFlowControlWindowSizeTestGroup ¶ added in v0.0.5
func InitialFlowControlWindowSizeTestGroup() *TestGroup
func MalformedRequestsAndResponsesTestGroup ¶ added in v0.0.5
func MalformedRequestsAndResponsesTestGroup() *TestGroup
func NewTestGroup ¶ added in v0.0.5
func PingTestGroup ¶ added in v0.0.5
func PingTestGroup() *TestGroup
func PriorityTestGroup ¶ added in v0.0.5
func PriorityTestGroup() *TestGroup
func PseudoHeaderFieldsTestGroup ¶ added in v0.0.5
func PseudoHeaderFieldsTestGroup() *TestGroup
func RequestPseudoHeaderFieldsTestGroup ¶ added in v0.0.5
func RequestPseudoHeaderFieldsTestGroup() *TestGroup
func RstStreamTestGroup ¶ added in v0.0.5
func RstStreamTestGroup() *TestGroup
func ServerPushTestGroup ¶ added in v0.0.5
func ServerPushTestGroup() *TestGroup
func SettingsTestGroup ¶ added in v0.0.5
func SettingsTestGroup() *TestGroup
func StreamConcurrencyTestGroup ¶ added in v0.0.5
func StreamConcurrencyTestGroup() *TestGroup
func StreamIdentifiersTestGroup ¶ added in v0.0.5
func StreamIdentifiersTestGroup() *TestGroup
func StreamStatesTestGroup ¶ added in v0.0.5
func StreamStatesTestGroup() *TestGroup
func TheFlowControlWindowTestGroup ¶ added in v0.0.5
func TheFlowControlWindowTestGroup() *TestGroup
func WindowUpdateTestGroup ¶ added in v0.0.5
func WindowUpdateTestGroup() *TestGroup
func (*TestGroup) AddTestCase ¶ added in v0.0.5
func (*TestGroup) AddTestGroup ¶ added in v0.0.5
func (*TestGroup) PrintFailedTestCase ¶ added in v0.0.7
PrintFailedTestCase prints failed TestCase results under this TestGroup.
func (*TestGroup) PrintFooter ¶ added in v0.0.5
func (*TestGroup) PrintHeader ¶ added in v0.0.5
type TestResult ¶ added in v0.0.7
type TestResult int
const ( Failed TestResult = iota Skipped Passed )
TestResult indicates the result of test case
Source Files ¶
Click to show internal directories.
Click to hide internal directories.