tests

package
v1.3.383 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqualFileText added in v1.3.148

func AssertEqualFileText(t *testing.T, expectedFile string, actualFile string) error

func AssertFileContains added in v1.3.24

func AssertFileContains(t *testing.T, fileName string, containsText string)

AssertFileContains asserts that a given file exists and contains the given text

func AssertFileDoesNotExist added in v1.3.24

func AssertFileDoesNotExist(t *testing.T, fileName string) bool

AssertFileDoesNotExist asserts that the given file does not exist

func AssertFileExists added in v1.3.24

func AssertFileExists(t *testing.T, fileName string) bool

AssertFileExists asserts that the given file exists

func AssertFilesExist added in v1.3.24

func AssertFilesExist(t *testing.T, expected bool, paths ...string)

AssertFilesExist asserts that the list of file paths either exist or don't exist

func AssertLoadFileText added in v1.3.148

func AssertLoadFileText(t *testing.T, fileName string) (string, error)

func CreateAuthConfigService added in v1.3.291

func CreateAuthConfigService() auth.AuthConfigService

CreateAuthConfigService creates and returns a fixture AuthConfigService

func Debugf

func Debugf(message string, args ...interface{})

Debugf debug format

func IsDebugLog

func IsDebugLog() bool

IsDebugLog debug log?

func NewTerminal added in v1.3.291

func NewTerminal(t *testing.T) (*expect.Console, *vt10x.State, *terminal.Stdio)

NewTerminal mock terminal to control stdin and stdout

func Output

func Output() terminal.FileWriter

Output returns the output to use for tests

func TestCloser added in v1.3.291

func TestCloser(t *testing.T, closer io.Closer)

TestCloser closes io

func TestShouldDisableMaven added in v1.2.121

func TestShouldDisableMaven() bool

TestShouldDisableMaven should disable maven

Types

This section is empty.

Jump to

Keyboard shortcuts

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