interfaces

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

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

type NotFunction func(bool, ...string) error

Directories

Path Synopsis
package picker provides simple function to create steps
package picker provides simple function to create steps

Jump to

Keyboard shortcuts

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