package TestUtil

import "github.com/AlecAivazis/survey/v2/tests/util"

Index

Functions

func RunErrorTable

func RunErrorTable(table []TestTableEntry)

func RunTable

func RunTable(table []TestTableEntry)

Types

type TestTableEntry

type TestTableEntry struct {
	Name     string
	Prompt   survey.Prompt
	Value    interface{}
	Validate func(interface{}) error
}

Source Files

test.go

Version
v2.3.7 (latest)
Published
Dec 8, 2022
Platform
darwin/amd64
Imports
3 packages
Last checked
6 days ago

Tools for package owners.