tests

package
v3.43.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAllNotNil added in v3.14.0

func AssertAllNotNil(t *testing.T, vv ...interface{})

func AssertClone added in v3.14.0

func AssertClone(t *testing.T, e, g interface{})

func AssertContains

func AssertContains(t *testing.T, s, substr string, shouldContain bool)

func AssertEqual added in v3.14.0

func AssertEqual(t *testing.T, e, g interface{})

func AssertErrorContains

func AssertErrorContains(t *testing.T, err error, s string)

func AssertIsNil added in v3.14.0

func AssertIsNil(t *testing.T, v interface{})

func AssertNoError

func AssertNoError(t *testing.T, err error)

func AssertNotNil added in v3.14.0

func AssertNotNil(t *testing.T, v interface{})

func GetTestFilePath

func GetTestFilePath(filename string) string

GetTestFilePath return test file absolute path.

func NewLocalListener added in v3.14.0

func NewLocalListener(t *testing.T) net.Listener

func WaitCondition added in v3.14.0

func WaitCondition(waitFor, checkEvery time.Duration, fn func() bool) bool

WaitCondition reports whether fn eventually returned true, checking immediately and then every checkEvery amount, until waitFor has elapsed, at which point it returns false.

Types

type NeverEnding added in v3.14.0

type NeverEnding byte

func (NeverEnding) Read added in v3.14.0

func (b NeverEnding) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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