Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v0.31.100 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempfile

func CreateTempfile(tb testing.TB, b []byte) *os.File

CreateTempfile that will be closed and removed at the end of the test.

func DeleteTempfile

func DeleteTempfile(f *os.File, t *testing.T)

func WaitForContents added in v0.16.0

func WaitForContents(t *testing.T, d time.Duration, p, c string)

Types

type TestingTB added in v0.31.100

type TestingTB struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*TestingTB) Cleanup added in v0.31.100

func (t *TestingTB) Cleanup(f func())

func (*TestingTB) DoCleanup added in v0.31.100

func (t *TestingTB) DoCleanup()

func (*TestingTB) Failed added in v0.31.100

func (*TestingTB) Failed() bool

func (*TestingTB) Fatalf added in v0.31.100

func (*TestingTB) Fatalf(string, ...interface{})

func (*TestingTB) Helper added in v0.31.100

func (*TestingTB) Helper()

func (*TestingTB) Logf added in v0.31.100

func (*TestingTB) Logf(string, ...interface{})

func (*TestingTB) Name added in v0.31.100

func (*TestingTB) Name() string

Jump to

Keyboard shortcuts

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