tests

package
v3.0.0-...-dc1287f Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAllNotNil

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

func AssertClone

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

func AssertContains

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

func AssertEqual

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

func AssertErrorContains

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

func AssertIsNil

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

func AssertNoError

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

func AssertNotNil

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

func GetTestFilePath

func GetTestFilePath(filename string) string

GetTestFilePath return test file absolute path.

func NewLocalListener

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

func WaitCondition

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

type NeverEnding byte

func (NeverEnding) Read

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