combinatory

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(arr [][]any) [][]any

Generate generates all combinations of parameters passed as a slice of slices of possible values for a parameter

Types

type GM

type GM struct {
	Id     int
	Params string
	Output any
}

func Master

func Master(f Wrapper, values ...[]any) []GM

Master generates a subject running tests for every parameter combination. We need to provide:

* A function that wraps the subject under test * An slice of slices of possible parameters

Should be a method of Golden. Not return

type Wrapper added in v0.5.0

type Wrapper func(args ...any) any

Jump to

Keyboard shortcuts

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