Versions in this module Expand all Collapse all v0 v0.14.0 Apr 24, 2024 v0.13.0 Feb 27, 2024 Changes in this version + var InternalOptions = make([]Options, 0) + func FuncName(fn interface{}, suffixed bool) string + func InternalRunSubTests(ctx context.Context, t *T) + func NewHook(order int, setupFunc SetupFunc, teardownFunc TeardownFunc) *orderedHook + func NewSetupHook(order int, setupFunc SetupFunc) *orderedHook + func NewTeardownHook(order int, teardownFunc TeardownFunc) *orderedHook + func RunTest(ctx context.Context, t *testing.T, opts ...Options) + type GomegaSubTestFunc func(ctx context.Context, t *testing.T, g *gomega.WithT) + type Hook interface + Setup func(ctx context.Context, t *testing.T) (context.Context, error) + Teardown func(ctx context.Context, t *testing.T) error + type InternalRunner func(context.Context, *T) + type Options func(opt *T) + func AnonymousSubTest(st SubTestFunc) Options + func GomegaSubTest(st GomegaSubTestFunc, name ...string) Options + func Hooks(hooks ...Hook) Options + func Setup(fn SetupFunc) Options + func SubTest(subtest SubTestFunc, name string) Options + func SubTestSetup(fn SetupFunc) Options + func SubTestTeardown(fn TeardownFunc) Options + func Teardown(fn TeardownFunc) Options + func WithInternalRunner(runner InternalRunner) Options + func WithOptions(opts ...Options) Options + type SetupFunc func(ctx context.Context, t *testing.T) (context.Context, error) + type SubTestFunc func(ctx context.Context, t *testing.T) + func SubTestFuncWithGomega(st GomegaSubTestFunc) SubTestFunc + type SubTestOrderedMap struct + func NewSubTestOrderedMap() *SubTestOrderedMap + func (m *SubTestOrderedMap) Delete(key string) (didDelete bool) + func (m *SubTestOrderedMap) Get(key string) (SubTestFunc, bool) + func (m *SubTestOrderedMap) Keys() (keys []string) + func (m *SubTestOrderedMap) Len() int + func (m *SubTestOrderedMap) Set(name string, fn SubTestFunc) bool + type T struct + SubTestHooks []Hook + SubTests *SubTestOrderedMap + TestHooks []Hook + type TeardownFunc func(ctx context.Context, t *testing.T) error