Documentation
¶
Overview ¶
Package helpers defines helper functions to peer into end to end processes and kill processes as needed.
Index ¶
- func DeleteAndCreateFile(tmpPath string, fileName string) (*os.File, error)
- func DeleteLogFiles(t *testing.T, logfiles []*os.File)
- func KillProcesses(t *testing.T, pIDs []int)
- func LogErrorOutput(t *testing.T, file io.Reader, title string, index int)
- func WaitForTextInFile(file *os.File, text string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAndCreateFile ¶
DeleteAndCreateFile checks if the file path given exists, if it does, it deletes it and creates a new file. If not, it just creates the requested file.
func DeleteLogFiles ¶ added in v0.6.0
DeleteLogFiles cleans up the lingering log files
func KillProcesses ¶
KillProcesses finds the passed in process IDs and kills the process.
func LogErrorOutput ¶
LogErrorOutput logs the output of a specific file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.