Documentation
¶
Index ¶
- func CacheFlush()
- func Log(logger interface{ ... }, args ...interface{})
- func RecoverGoexit(fn func()) sandbox.RunOutcome
- func RegisterCacheFlush(fn func()) struct{}
- func SetupCacheFlush(tb testing.TB)
- func StubVerbose[T bool | func() bool](tb testing.TB, v T)
- func StubWarn(tb testing.TB) *bytes.Buffer
- func SymbolicName(T interface{}) string
- func Verbose() bool
- func Warn(vs ...any)
- type ContactConfig
- type ContactOption
- type NullTB
- func (n NullTB) Cleanup(f func())
- func (n NullTB) Error(args ...any)
- func (n NullTB) Errorf(format string, args ...any)
- func (n NullTB) Fail()
- func (n NullTB) FailNow()
- func (n NullTB) Failed() bool
- func (n NullTB) Fatal(args ...any)
- func (n NullTB) Fatalf(format string, args ...any)
- func (n NullTB) Helper()
- func (n NullTB) Log(args ...any)
- func (n NullTB) Logf(format string, args ...any)
- func (n NullTB) Name() string
- func (n NullTB) Setenv(key, value string)
- func (n NullTB) Skip(args ...any)
- func (n NullTB) SkipNow()
- func (n NullTB) Skipf(format string, args ...any)
- func (n NullTB) Skipped() bool
- func (n NullTB) TempDir() string
- type RecorderTB
- type SexType
- type Teardown
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 SymbolicName ¶
func SymbolicName(T interface{}) string
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.