utils

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func AssertContains(t *testing.T, actualOutput string, expectedOutput string) bool

AssertContains checks two string without ANSI colors

func AssertNotContains added in v1.5.0

func AssertNotContains(t *testing.T, actualOutput string, expectedOutput string) bool

AssertNotContains checks actualOutput string not contain expectedOutput string without ANSI colors

func CreateConfigFile

func CreateConfigFile(dir string, content string) error

CreateConfigFile creates a config file

func CreateConfigFileWithName added in v1.6.0

func CreateConfigFileWithName(dir string, fileName string, content string) error

CreateConfigFileWithName creates a config file with specified name

func CreateCustomTestResourceSubDir added in v1.6.0

func CreateCustomTestResourceSubDir(testDir string, subDirectoryName string) error

CreateCustomTestResourceSubDir created temporary directory

func CreateTempDir

func CreateTempDir() (string, error)

CreateTempDir created temporary directory

func PlainBanner added in v1.4.0

func PlainBanner() string

PlainBanner return dashes with fixed length - 72

func RecreateTestResourceDirectory

func RecreateTestResourceDirectory(dir string) string

RecreateTestResourceDirectory cleans up test resources and recreates it

func RemoveAllFilesFromDir

func RemoveAllFilesFromDir(dir string)

RemoveAllFilesFromDir Cleans up the directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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