Documentation ¶
Index ¶
- Constants
- func AppendToFailures(failLog string, pair *Pair) (err error)
- func GetTimestamp() string
- func Load(jsonFile string) ([]*Pair, []*Pair, error)
- func PrintConsoleFooter(failed int, total uint64, runtime time.Duration)
- func PrintConsoleHeader()
- func PrintPairResult(pair *Pair)
- func Run(testDefinitions, outDir *string, ...) error
- func RunConfig(pair *Pair, port int, ...)
- func WriteCustomData(file string, info string) error
- type Config
- type Pair
Constants ¶
View Source
const ( // Default timeout in seconds for client/server configurations without a defined timeout DefaultTimeout = 7 TestFailure = 101 CrossrunnerFailure = 102 )
Variables ¶
This section is empty.
Functions ¶
func AppendToFailures ¶
Append to failures adds a the client and server logs from a failed configuration to the unexpected_failure.log file.
func Load ¶
Load takes a json file of client/server definitions and returns a list of valid client/server pairs.
func PrintConsoleFooter ¶
PrintConsoleFooter writes the metadata associated with the test suite to the console.
func PrintConsoleHeader ¶
func PrintConsoleHeader()
PrintConsoleHeader prints a header for all test configuration results to the console.
func PrintPairResult ¶
func PrintPairResult(pair *Pair)
PrintPairResult prints a formatted pair result to the console.
func RunConfig ¶
func RunConfig(pair *Pair, port int, getCommand func(config Config, port int) (cmd *exec.Cmd, formatted string))
RunConfig runs a client against a server. Client/Server logs are created and failures are added to the unexpected_failures.log. Each result is logged to the console.
func WriteCustomData ¶
WriteCustomData writes any string to a file.
Types ¶
Click to show internal directories.
Click to hide internal directories.