bdd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Behavior

type Behavior[WHEN any, THEN any] struct {
	Name string
	When WHEN
	Then THEN
}

type Testcase

type Testcase[GIVEN any, WHEN any, THEN any] struct {
	Name      string
	Given     GIVEN
	Behaviors []Behavior[WHEN, THEN]
}

func (Testcase[GIVEN, WHEN, THEN]) Run

func (tc Testcase[GIVEN, WHEN, THEN]) Run(t *testing.T, f func(t *testing.T, given GIVEN, when WHEN, then THEN))

Jump to

Keyboard shortcuts

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