scenario

package
v0.0.0-...-b6c9256 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL