Documentation
¶
Index ¶
- Variables
- func IntoContext(ctx context.Context, t TTest) context.Context
- type ErrReader
- type InternalTest
- type MockT
- func (c *MockT) Cleanup(f func())
- func (t *MockT) Deadline() (deadline time.Time, ok bool)
- func (c *MockT) Error(args ...any)
- func (c *MockT) Errorf(format string, args ...any)
- func (c *MockT) Fail()
- func (c *MockT) FailNow()
- func (c *MockT) Failed() bool
- func (c *MockT) Fatal(args ...any)
- func (c *MockT) Fatalf(format string, args ...any)
- func (c *MockT) Helper()
- func (c *MockT) Log(args ...any)
- func (c *MockT) Logf(format string, args ...any)
- func (c *MockT) Name() string
- func (t *MockT) Parallel()
- func (nt *MockT) Run(name string, f func(t *T)) bool
- func (t *MockT) Setenv(key, value string)
- func (c *MockT) Skip(args ...any)
- func (c *MockT) SkipNow()
- func (c *MockT) Skipf(format string, args ...any)
- func (c *MockT) Skipped() bool
- func (c *MockT) TempDir() string
- type T
- type TTest
Constants ¶
This section is empty.
Variables ¶
View Source
var MainStart = testing.MainStart
Functions ¶
func IntoContext ¶
func IntoContext(ctx context.Context, t TTest) context.Context
Types ¶
type InternalTest ¶
type InternalTest = testing.InternalTest
type MockT ¶ added in v0.0.9
type MockT struct {
NameVar string
FailedVar bool
ImmeditateFailVar bool
SkippedVar bool
}
type TTest ¶ added in v0.2.8
type TTest interface {
Cleanup(func())
Deadline() (deadline time.Time, ok bool)
Error(args ...any)
Errorf(format string, args ...any)
Fail()
FailNow()
Failed() bool
Fatal(args ...any)
Fatalf(format string, args ...any)
Helper()
Log(args ...any)
Logf(format string, args ...any)
Name() string
Parallel()
Run(name string, f func(t *T)) bool
Setenv(key, value string)
Skip(args ...any)
SkipNow()
Skipf(format string, args ...any)
Skipped() bool
TempDir() string
}
func FromContext ¶
func FromContext(ctx context.Context) TTest
Click to show internal directories.
Click to hide internal directories.