Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey defines a type to store the shared session in context.Context.
type Session ¶
type Session struct {
StatusCode int
}
Session contains the information of shared session
func GetSession ¶
GetSession returns the shared session stored in context. Note that the context should be previously initialized with InitializeContext function.
func (*Session) SaveStatusCode ¶
SaveStatusCode save the status code.
type Steps ¶
type Steps struct { }
Steps type is responsible to initialize the HTTP client steps in godog framework.
func (Steps) InitializeSteps ¶
InitializeSteps adds base steps to the scenario context. It implements StepsInitializer interface. It returns a new context (context is immutable) with the HTTP Context.
Click to show internal directories.
Click to hide internal directories.