internal

package
v0.156.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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(tb testing.TB, fn func() bool)

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 RecorderTB

type RecorderTB = doubles.RecorderTB

type SexType

type SexType int
const (
	SexTypeMale SexType
	SexTypeFemale
	SexTypeAny
)

type SuiteNullTB

type SuiteNullTB struct{ testing.TB }

func (SuiteNullTB) Cleanup

func (n SuiteNullTB) Cleanup(f func())

func (SuiteNullTB) Error

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

func (SuiteNullTB) Errorf

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

func (SuiteNullTB) Fail

func (n SuiteNullTB) Fail()

func (SuiteNullTB) FailNow

func (n SuiteNullTB) FailNow()

func (SuiteNullTB) Failed

func (n SuiteNullTB) Failed() bool

func (SuiteNullTB) Fatal

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

func (SuiteNullTB) Fatalf

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

func (SuiteNullTB) Helper

func (n SuiteNullTB) Helper()

func (SuiteNullTB) Log

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

func (SuiteNullTB) Logf

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

func (SuiteNullTB) Name

func (n SuiteNullTB) Name() string

func (SuiteNullTB) Setenv

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

func (SuiteNullTB) Skip

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

func (SuiteNullTB) SkipNow

func (n SuiteNullTB) SkipNow()

func (SuiteNullTB) Skipf

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

func (SuiteNullTB) Skipped

func (n SuiteNullTB) Skipped() bool

func (SuiteNullTB) TempDir

func (n SuiteNullTB) TempDir() string

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