Documentation ¶
Overview ¶
nolint forbidigo
Index ¶
- Constants
- func AssertWildcards(t assert.TestingT, expected string, actual string, msg string)
- func EscapeWhitespaces(input string) string
- func NewVirtualTerminal(t *testing.T, opts ...expect.ConsoleOpt) (*expect.Console, *vt10x.State, error)
- func ReplaceEnvsString(str string, provider EnvProvider) string
- func TestIsVerbose() bool
- func VerboseStderr() io.WriteCloser
- func VerboseStdout() io.WriteCloser
- func WildcardToRegexp(pattern string) string
- type EnvProvider
Constants ¶
View Source
const ( DownArrow = "\u001B[B" Space = " " Enter = "\n" )
Variables ¶
This section is empty.
Functions ¶
func AssertWildcards ¶
AssertWildcards compares two texts, in expected value can be used wildcards, see WildcardToRegexp function.
func EscapeWhitespaces ¶
EscapeWhitespaces escapes all whitespaces except new line -> for better difference in diff output.
func NewVirtualTerminal ¶
func ReplaceEnvsString ¶
func ReplaceEnvsString(str string, provider EnvProvider) string
ReplaceEnvsString replaces ENVs in given string.
func TestIsVerbose ¶
func TestIsVerbose() bool
func VerboseStderr ¶
func VerboseStderr() io.WriteCloser
func VerboseStdout ¶
func VerboseStdout() io.WriteCloser
func WildcardToRegexp ¶
WildcardToRegexp converts string with wildcards to regexp, so it can be used in assert.Regexp.
Types ¶
type EnvProvider ¶
Click to show internal directories.
Click to hide internal directories.