Documentation ¶
Index ¶
- func AddOnPanicExitHandler(fn func(interface{}))
- func AddPanicHandler(fn func(interface{}))
- func AddToHelpersMap(t *testing.T, frameFnNames []string)
- func GetBenchmarkHasSub(b *testing.B) int32
- func GetBenchmarkMutex(b *testing.B) *sync.RWMutex
- func GetBenchmarkResult(b *testing.B) (*testing.BenchmarkResult, error)
- func GetBenchmarkSuiteName(b *testing.B) string
- func GetFieldPointerOf(i interface{}, fieldName string) (unsafe.Pointer, error)
- func GetIsParallel(t *testing.T) bool
- func GetParentBenchmark(b *testing.B) *testing.B
- func GetTestDuration(t *testing.T) (time.Duration, error)
- func GetTestMutex(t *testing.T) *sync.RWMutex
- func GetTestStartTime(t *testing.T) (time.Time, error)
- func GetTypePointer(i interface{}, fieldName string) (reflect.Type, error)
- func SkipAndFinishTest(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOnPanicExitHandler ¶ added in v0.1.13
func AddOnPanicExitHandler(fn func(interface{}))
Adds a global panic handler before process kill (this handler will be executed if not recover is set before the process exits)
func AddPanicHandler ¶ added in v0.1.13
func AddPanicHandler(fn func(interface{}))
Adds a global panic handler (this handler will be executed before any recover call)
func GetBenchmarkResult ¶ added in v0.1.13
func GetBenchmarkResult(b *testing.B) (*testing.BenchmarkResult, error)
Get benchmark result from the private result field in testing.B
func GetFieldPointerOf ¶ added in v0.1.12
Gets a pointer of a private or public field in any struct
func GetTypePointer ¶ added in v0.1.12
Gets the type pointer to a field name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.