helpers

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package helpers defines helper functions to peer into end to end processes and kill processes as needed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAndCreateFile

func DeleteAndCreateFile(tmpPath string, fileName string) (*os.File, error)

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

func DeleteLogFiles(t *testing.T, logfiles []*os.File)

DeleteLogFiles cleans up the lingering log files

func KillProcesses

func KillProcesses(t *testing.T, pIDs []int)

KillProcesses finds the passed in process IDs and kills the process.

func LogErrorOutput

func LogErrorOutput(t *testing.T, file io.Reader, title string, index int)

LogErrorOutput logs the output of a specific file.

func WaitForTextInFile

func WaitForTextInFile(file *os.File, text string) error

WaitForTextInFile checks a file every polling interval for the text requested.

Types

This section is empty.

Jump to

Keyboard shortcuts

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