Documentation ¶
Overview ¶
package interfaces exposes kactus features to enrich godog experience, allowing you to define your own steps with it.
To have a more basic experiences around kactus, look into definitions package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnexpectedColumn is raised when loading a godog table with // unexpected column header. ErrUnexpectedColumn = internal.ErrUnexpectedColumn )
Functions ¶
func AsNot ¶
func AsNot(fn NotFunction) func(string, ...string) error
AsNot wrap a simple expect/unexpect Step assertion from string to bool.
It is mostly a syntaxic helper allowing to convert a NOT string to boolean.
It matches steps like:
I (don't )expect something (p1) to happen when (p2)
func AsNot2 ¶
func AsNot2(fn NotFunction) func(string) error
func ComposeBeforeStep ¶
func ComposeBeforeStep(beforeSteps ...func(steps *messages.Pickle_PickleStep)) func(steps *messages.Pickle_PickleStep)
ComposeBeforeStep allow to aggregate multiple BeforeStep helper into a single one to pass to godog.BeforeStep.
/!\ order is important. BeforeSteps function will be executed in provided order.
Types ¶
type NotFunction ¶
Click to show internal directories.
Click to hide internal directories.