internal

package
v0.167.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheFlush

func CacheFlush()

func Log

func Log(logger interface {
	Logf(format string, args ...interface{})
}, args ...interface{})

func RecoverGoexit

func RecoverGoexit(fn func()) sandbox.RunOutcome

RecoverGoexit helps overcome the testing.TB#FailNow's behaviour where on failure the goroutine exits to finish earlier.

func RegisterCacheFlush

func RegisterCacheFlush(fn func()) struct{}

func SetupCacheFlush

func SetupCacheFlush(tb testing.TB)

func StubVerbose added in v0.156.0

func StubVerbose[T bool | func() bool](tb testing.TB, v T)

func StubWarn added in v0.153.1

func StubWarn(tb testing.TB) *bytes.Buffer

func SymbolicName

func SymbolicName(T interface{}) string

func Verbose added in v0.156.0

func Verbose() bool

func Warn added in v0.153.1

func Warn(vs ...any)

Types

type ContactConfig

type ContactConfig struct {
	SexType SexType
}

func ToContactConfig

func ToContactConfig(opts ...ContactOption) ContactConfig

type ContactOption

type ContactOption interface {
	// contains filtered or unexported methods
}

type NullTB added in v0.156.1

type NullTB struct{ testing.TB }

func (NullTB) Cleanup added in v0.156.1

func (n NullTB) Cleanup(f func())

func (NullTB) Error added in v0.156.1

func (n NullTB) Error(args ...any)

func (NullTB) Errorf added in v0.156.1

func (n NullTB) Errorf(format string, args ...any)

func (NullTB) Fail added in v0.156.1

func (n NullTB) Fail()

func (NullTB) FailNow added in v0.156.1

func (n NullTB) FailNow()

func (NullTB) Failed added in v0.156.1

func (n NullTB) Failed() bool

func (NullTB) Fatal added in v0.156.1

func (n NullTB) Fatal(args ...any)

func (NullTB) Fatalf added in v0.156.1

func (n NullTB) Fatalf(format string, args ...any)

func (NullTB) Helper added in v0.156.1

func (n NullTB) Helper()

func (NullTB) Log added in v0.156.1

func (n NullTB) Log(args ...any)

func (NullTB) Logf added in v0.156.1

func (n NullTB) Logf(format string, args ...any)

func (NullTB) Name added in v0.156.1

func (n NullTB) Name() string

func (NullTB) Setenv added in v0.156.1

func (n NullTB) Setenv(key, value string)

func (NullTB) Skip added in v0.156.1

func (n NullTB) Skip(args ...any)

func (NullTB) SkipNow added in v0.156.1

func (n NullTB) SkipNow()

func (NullTB) Skipf added in v0.156.1

func (n NullTB) Skipf(format string, args ...any)

func (NullTB) Skipped added in v0.156.1

func (n NullTB) Skipped() bool

func (NullTB) TempDir added in v0.156.1

func (n NullTB) TempDir() string

type RecorderTB

type RecorderTB = doubles.RecorderTB

type SexType

type SexType int
const (
	SexTypeMale SexType
	SexTypeFemale
	SexTypeAny
)

type Teardown

type Teardown = teardown.Teardown

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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