Documentation ¶
Index ¶
- Constants
- func AssertContains(t *testing.T, actualOutput string, expectedOutput string) bool
- func AssertNotContains(t *testing.T, actualOutput string, expectedOutput string) bool
- func CreateConfigFile(dir string, content string) error
- func CreateConfigFileWithName(dir string, fileName string, content string) error
- func CreateCustomTestResourceSubDir(testDir string, subDirectoryName string) error
- func CreateTempDir() (string, error)
- func PlainBanner() string
- func RecreateTestResourceDirectory(dir string) string
- func RemoveAllFilesFromDir(dir string)
Constants ¶
View Source
const (
// MaxOutputWidth is the number of spaces to use on a console
MaxOutputWidth = 72
)
Variables ¶
This section is empty.
Functions ¶
func AssertContains ¶ added in v1.5.0
AssertContains checks two string without ANSI colors
func AssertNotContains ¶ added in v1.5.0
AssertNotContains checks actualOutput string not contain expectedOutput string without ANSI colors
func CreateConfigFile ¶
CreateConfigFile creates a config file
func CreateConfigFileWithName ¶ added in v1.6.0
CreateConfigFileWithName creates a config file with specified name
func CreateCustomTestResourceSubDir ¶ added in v1.6.0
CreateCustomTestResourceSubDir created temporary directory
func PlainBanner ¶ added in v1.4.0
func PlainBanner() string
PlainBanner return dashes with fixed length - 72
func RecreateTestResourceDirectory ¶
RecreateTestResourceDirectory cleans up test resources and recreates it
func RemoveAllFilesFromDir ¶
func RemoveAllFilesFromDir(dir string)
RemoveAllFilesFromDir Cleans up the directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.