Documentation
¶
Index ¶
- func Run(ctx context.Context, testingT *testing.T, suite any, middleware ...Middleware)
- type Middleware
- type T
- func (t *T) BaseName() string
- func (t *T) BeforeAll(f func(*T) *T) *T
- func (t T) BeforeEach(f Middleware) *T
- func (t *T) Context() context.Context
- func (t *T) Error(vals ...any)
- func (t *T) Errorf(format string, vals ...any)
- func (t *T) Errors() string
- func (t *T) Fatal(vals ...any)
- func (t *T) Fatalf(format string, vals ...any)
- func (t *T) Log(vals ...any)
- func (t *T) Logf(format string, vals ...any)
- func (t *T) Run(name string, f func(context.Context, *T)) bool
- func (t *T) Skip(vals ...any)
- func (t *T) Skipf(format string, vals ...any)
- func (t T) WithContext(ctx context.Context) *T
- func (t T) WithLogger(logger func(*T, string)) *T
- func (t *T) WithTimeout(timeout time.Duration) *T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
func Combine ¶
func Combine(middleware ...Middleware) Middleware
func WithOTelLogging ¶
func WithOTelLogging(logger log.Logger) Middleware
func WithOTelTracing ¶
func WithOTelTracing(tracer trace.Tracer) Middleware
type T ¶
func WithParallel ¶
func (*T) BeforeAll ¶
BeforeAll calls f immediately with itself and returns the result.
It is not inherited by subtests.
func (T) BeforeEach ¶
func (t T) BeforeEach(f Middleware) *T
BeforeEach configures f to run prior to each subtest.
Click to show internal directories.
Click to hide internal directories.