testutil

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFreePort added in v1.29.0

func GetFreePort(t *testing.T) int

GetFreePort asks the kernel for a free open port that is ready to use for tests.

func StderrOutputForFunc

func StderrOutputForFunc(f func()) string

func StdoutOutputForFunc

func StdoutOutputForFunc(f func()) string

Types

type CustomError added in v1.1.1

type CustomError struct {
	ErrorMessage string
}

func (CustomError) Error added in v1.1.1

func (c CustomError) Error() string

Jump to

Keyboard shortcuts

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