faketestingt

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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)

func (*FakeTestingT) Run

func (t *FakeTestingT) Run(name string, fn func(*testing.T)) bool

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

func NewSubTest(subtest func(*testing.T)) *SubTest

func (*SubTest) Failed

func (s *SubTest) Failed() bool

func (*SubTest) Run

func (s *SubTest) Run()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL