test

package
v0.0.0-...-fcfee00 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestBasePath = "../build/test"
)

Global tests constants

Variables

This section is empty.

Functions

func CopyFileToAbsPath

func CopyFileToAbsPath(srcFile string, path string, trgFileName string)

CopyFileToAbsPath function to copy one file to an absolute path

func ExecSysCommand

func ExecSysCommand(cmdStr string) string

ExecSysCommand function to executeone command in the system

func GetAbsPath

func GetAbsPath(path string) string

GetAbsPath function to get an absolute path from a relative path

func RemoveAbsPath

func RemoveAbsPath(path string)

RemoveAbsPath function to remove one absolute path

Types

type TestCmdCtx

type TestCmdCtx struct {
	// contains filtered or unexported fields
}

TestCmdCtx struct

func NewTestCmdCtx

func NewTestCmdCtx() *TestCmdCtx

NewTestCmdCtx function to get a new TestCmdCtx instance

func (*TestCmdCtx) CloseOutCapture

func (testCmdCtx *TestCmdCtx) CloseOutCapture(logResults bool, limit int) (result string, errResult string)

CloseOutCapture method to close the stdout and stderr capture and get the results

func (*TestCmdCtx) OpenOutCapture

func (testCmdCtx *TestCmdCtx) OpenOutCapture()

OpenOutCapture method to open a new stdout and stderr capture

Jump to

Keyboard shortcuts

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