Documentation ¶
Overview ¶
Package http defines a godog feature context which adds steps to test http.Handler implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureContext ¶
type FeatureContext struct {
// contains filtered or unexported fields
}
FeatureContext adds steps to setup and verify http handlers in godog tests.
func NewFeatureContext ¶
func NewFeatureContext(handler http.Handler) *FeatureContext
NewFeatureContext creates a new FeatureContext. It expects a http.Handler which the test suite can make requests against.
func (*FeatureContext) Register ¶
func (c *FeatureContext) Register(s *godog.Suite)
Register registers the feature context to the godog suite.
Click to show internal directories.
Click to hide internal directories.