Documentation
¶
Index ¶
- type FakeTestingT
- func (t *FakeTestingT) FailNow()
- func (t *FakeTestingT) FailedNow() bool
- func (t *FakeTestingT) GetSubtest(name string) *SubTest
- func (t *FakeTestingT) Helper()
- func (t *FakeTestingT) HelperCalls() int
- func (t *FakeTestingT) LogOutput() []string
- func (t *FakeTestingT) Logf(format string, args ...any)
- func (t *FakeTestingT) Run(name string, fn func(*testing.T)) bool
- type SubTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeTestingT ¶
type FakeTestingT struct {
// contains filtered or unexported fields
}
func New ¶
func New() *FakeTestingT
func (*FakeTestingT) FailNow ¶
func (t *FakeTestingT) FailNow()
func (*FakeTestingT) FailedNow ¶
func (t *FakeTestingT) FailedNow() bool
func (*FakeTestingT) GetSubtest ¶
func (t *FakeTestingT) GetSubtest(name string) *SubTest
func (*FakeTestingT) Helper ¶
func (t *FakeTestingT) Helper()
func (*FakeTestingT) HelperCalls ¶
func (t *FakeTestingT) HelperCalls() int
func (*FakeTestingT) LogOutput ¶
func (t *FakeTestingT) LogOutput() []string
func (*FakeTestingT) Logf ¶
func (t *FakeTestingT) Logf(format string, args ...any)
type SubTest ¶
type SubTest struct {
// contains filtered or unexported fields
}
SubTest captures a subtest body so a test can run it on demand.
It deliberately knows nothing about testing.T's internals. An earlier version reached into unexported fields with reflect and unsafe to observe whether T.Parallel had been called; that observation is not available to any caller, and the private layout it depended on changes between Go releases. The laboratory exposes a seam for that instead.
func NewSubTest ¶
Click to show internal directories.
Click to hide internal directories.