Help us shape the future of Go! Take the 2026 Go Developer Survey

helper

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertOutput

func AssertOutput(t *testing.T, expected, actual interface{})

func ContainsAll added in v0.14.0

func ContainsAll(target string, substrings ...string) gotestcmp.Comparison

ContainsAll is a comparison utility, compares given substrings against target string and returns the gotest.tools/assert/cmp.Comparison function. Provide target string as first arg, followed by any number of substring as args

func GetResourcePath

func GetResourcePath(elem ...string) string

func NewVT10XConsole added in v0.25.0

func NewVT10XConsole(opts ...expect.ConsoleOpt) (*expect.Console, vt10x.Terminal, error)

NewVT10XConsole returns a new expect.Console that multiplexes the Stdin/Stdout to a VT10X terminal, allowing Console to interact with an application sending ANSI escape sequences.

func Process

func Process(t *template.Template, vars interface{}) string

func ProcessString

func ProcessString(str string, vars interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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