testing

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeSurvey

type FakeSurvey struct {
	// contains filtered or unexported fields
}

FakeSurvey is a fake survey that just returns predefined strings

func NewFakeSurvey

func NewFakeSurvey() *FakeSurvey

NewFakeSurvey creates a new fake survey

func (*FakeSurvey) Question

func (f *FakeSurvey) Question(params *surveypkg.QuestionOptions) (string, error)

Question asks a question and returns a fake answer

func (*FakeSurvey) SetNextAnswer

func (f *FakeSurvey) SetNextAnswer(answer string)

SetNextAnswer will set the next answer for the question function

Jump to

Keyboard shortcuts

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