Documentation
¶
Index ¶
- Constants
- func AddFileToDirectory(dir, fileName, fileContents string) error
- func BuildDirectory() string
- func GetPortNumber() int
- func GolangMainFail() string
- func GolangMainSuccess() string
- func GolangTestFail() string
- func GolangTestSuccess() string
- func RemoveWhitespace(str string) string
- func WaitForHTTPService(ctx context.Context, url string, httpClient *http.Client) error
Constants ¶
const ( TestTimeout = 5 * time.Second RPCTestTimeout = 30 * time.Second ProcessTestTimeout = 15 * time.Second ManagerTestTimeout = 5 * TestTimeout ExecutorTestTimeout = 5 * time.Second LongTestTimeout = 100 * time.Second )
Constants for test timeouts.
Variables ¶
This section is empty.
Functions ¶
func AddFileToDirectory ¶
AddFileToDirectory adds an archive file given by fileName with the given fileContents to the directory.
func BuildDirectory ¶
func BuildDirectory() string
BuildDirectory is the project-level directory where all build artifacts are put.
func GetPortNumber ¶
func GetPortNumber() int
GetPortNumber returns a new port number that has not been used in the current runtime.
func GolangMainFail ¶
func GolangMainFail() string
GolangMainFail returns the contents of a Golang main script that will fail when run.
func GolangMainSuccess ¶
func GolangMainSuccess() string
GolangMainSuccess returns the contents of a Golang main script that will succeed when run.
func GolangTestFail ¶
func GolangTestFail() string
GolangTestFail returns the contents of a Golang test that will fail when runk.
func GolangTestSuccess ¶
func GolangTestSuccess() string
GolangTestSuccess returns the contents of a Golang test that will succeed when run.
func RemoveWhitespace ¶
RemoveWhitespace returns the string without any whitespace characters.
Types ¶
This section is empty.