Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregatedSession ¶
type AggregatedSession struct {
// contains filtered or unexported fields
}
AggregatedSession contains the information of shared session
func GetSession ¶
func GetSession(ctx context.Context) *AggregatedSession
GetSession returns the Aggregated session stored in context. Note that the context should be previously initialized with InitializeContext function.
func (*AggregatedSession) SaveStatusCode ¶
func (a *AggregatedSession) SaveStatusCode(ctx context.Context, code int) error
SaveStatusCode saves code in shared session.
type ContextKey ¶
type ContextKey string
ContextKey defines a type to store the aggregated session in context.Context.
type Steps ¶
type Steps struct {
}
Steps type is responsible to initialize aggregated steps in godog framework.
func (Steps) InitializeSteps ¶
InitializeSteps adds aggregated steps to the scenario context. It implements StepsInitializer interface. It returns a new context (context is immutable) with the HTTP Context.