testutils

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputTest

type InputTest struct {
	Type    inputs.InputType
	Options flagsets.ConfigOptions
	Flags   *pflag.FlagSet
}

func NewInputTest

func NewInputTest(name string) *InputTest

func (*InputTest) Check

func (t *InputTest) Check(expected interface{})

func (*InputTest) Set

func (t *InputTest) Set(opt NameProvider, value string)

func (*InputTest) SetWithFailure

func (t *InputTest) SetWithFailure(opt NameProvider, value string, msg string)

type NameProvider

type NameProvider interface {
	GetName() string
}

Jump to

Keyboard shortcuts

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