Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDependency ¶
func SetDependency(consumer depender, provider depender) error
func UseHarness ¶
func UseHarness[Ctx TBConstraint](ctx Ctx, harness *Harness) (Assertions, *Harness)
Types ¶
type Assertions ¶
type Assertions = *require.Assertions
func UseFixture ¶
func UseFixture[Ctx TBConstraint, T any](ctx Ctx, fixture *Fixture[T]) (Assertions, T)
func UseHooks ¶
func UseHooks[Ctx TBConstraint, Fixture any](ctx Ctx, setup func() (Fixture, error), teardown func(Fixture) error) (Assertions, Fixture)
type Case ¶
type Case[Fixture any] struct { Description string Test func(assert Assertions, fixture Fixture) }
type Fixture ¶
type Fixture[T any] struct { // contains filtered or unexported fields }
func NewFixture ¶
func (*Fixture[T]) Dependencies ¶
type Harness ¶
type Harness struct {
// contains filtered or unexported fields
}
func NewHarness ¶
func NewHarness() *Harness
type Spec ¶
type Spec[Ctx TBConstraint, Fixture any] struct { // contains filtered or unexported fields }
func NewSpecWithHooks ¶
func NewSpecWithHooks[Ctx TBConstraint, Fixture any](ctx Ctx, setup func() (Fixture, error), teardown func(Fixture) error) Spec[Ctx, Fixture]
Click to show internal directories.
Click to hide internal directories.