test

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MPL-2.0 Imports: 7 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 v1.0.0

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

func (*TestingTB) Cleanup added in v1.0.0

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

func (*TestingTB) DoCleanup added in v1.0.0

func (t *TestingTB) DoCleanup()

func (*TestingTB) Failed added in v1.0.0

func (*TestingTB) Failed() bool

func (*TestingTB) Fatalf added in v1.0.0

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

func (*TestingTB) Helper added in v1.0.0

func (*TestingTB) Helper()

func (*TestingTB) Logf added in v1.0.0

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

func (*TestingTB) Name added in v1.0.0

func (*TestingTB) Name() string

Jump to

Keyboard shortcuts

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