gtest

package
v0.0.0-...-3e416e1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugRunProcess

func DebugRunProcess(t *testing.T)

func InGMCT

func InGMCT() bool

func RunProcess

func RunProcess(t *testing.T, f func()) bool

RunProcess checking if testing is called in NewProcess, if true, then call the function f and returns true, you should return current testing t function after call CanExec.

Types

type Process

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

func NewProcess

func NewProcess(t *testing.T) *Process

NewProcess fork a subprocess runs current testing t function.

func (*Process) IsRunning

func (s *Process) IsRunning() bool

IsRunning returns true if testing subprocess is running, otherwise returns false.

func (*Process) Kill

func (s *Process) Kill() (err error)

Kill killing testing subprocess.

func (*Process) Output

func (s *Process) Output() string

Output acquires the subprocess stdout and stderr output after Start called.

func (*Process) Start

func (s *Process) Start() (err error)

Start starts testing subprocess and return immediately with no wait.

func (*Process) Verbose

func (s *Process) Verbose(isVerbose bool) *Process

Verbose sets verbose output of testing process.

func (*Process) Wait

func (s *Process) Wait() (out string, exitCode int, err error)

Wait starts testing subprocess and wait for it exited.

Jump to

Keyboard shortcuts

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