Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixtureInit ¶
type FixtureSetup ¶
type FixtureSetup[T FixtureInit] struct { TB testing.TB Fixture T Include func(val reflect.Value) bool Deps []any // contains filtered or unexported fields }
func (*FixtureSetup[T]) Setup ¶
func (f *FixtureSetup[T]) Setup() Setuper
type NullSetup ¶
type NullSetup struct{}
NullSetuper is just a Setuper that ignores setup calls on the null instance
type Setuper ¶
type Setuper interface{ Setup() }
func InitFixture ¶
func InitFixture[T FixtureInit]( t testing.TB, fixture T, deps ...any, ) (T, Setuper)
Click to show internal directories.
Click to hide internal directories.