Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCreateDeckSteps ¶
func RegisterCreateDeckSteps(ctx *godog.ScenarioContext, deckCtx *DeckContext)
RegisterCreateDeckSteps registers steps for the CreateFrenchDeck.feature scenarios.
func RegisterDrawCardsSteps ¶
func RegisterDrawCardsSteps(ctx *godog.ScenarioContext, deckCtx *DeckContext)
RegisterDrawCardsSteps registers steps for the DrawCardsFromFrenchDeck.feature scenarios.
func RegisterOpenDeckSteps ¶
func RegisterOpenDeckSteps(ctx *godog.ScenarioContext, deckCtx *DeckContext)
RegisterOpenDeckSteps registers steps for the OpenFrenchDeck.feature scenarios.
Types ¶
type DeckContext ¶
type DeckContext struct {
// contains filtered or unexported fields
}
DeckContext for the various feature test scenarios.
func NewDeckContext ¶
func NewDeckContext(cfg *config.Specification, db *sql.DB) *DeckContext
NewDeckContext returns a new DeckContext.
func (*DeckContext) ResetContext ¶
func (deckCtx *DeckContext) ResetContext()
ResetContext is triggered after each scenario in order to clean up the data.
Click to show internal directories.
Click to hide internal directories.