fixturez

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 10 Imported by: 4

Documentation

Overview

Package fixturez provides a test suite framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSuite

func RunSuite(t *testing.T, suite any)

RunSuite runs the test suite.

Types

type AfterSuite

type AfterSuite interface {
	// AfterSuite describes a method invoked after completing a test suite.
	AfterSuite(ctx context.Context, g *gomega.WithT)
}

AfterSuite describes a method invoked after completing a test suite.

type AfterTest

type AfterTest interface {
	// AfterTest describes a method invoked after each test method in a suite.
	AfterTest(ctx context.Context, g *gomega.WithT)
}

AfterTest describes a method invoked after each test method in a suite.

type BeforeSuite

type BeforeSuite interface {
	// BeforeSuite describes a method invoked before starting a test suite.
	BeforeSuite(ctx context.Context, g *gomega.WithT) context.Context
}

BeforeSuite describes a method invoked before starting a test suite.

type BeforeTest

type BeforeTest interface {
	// BeforeTest describes a method invoked before each test method in a suite.
	BeforeTest(ctx context.Context, g *gomega.WithT, ctrl *gomock.Controller) context.Context
}

BeforeTest describes a method invoked before each test method in a suite.

Jump to

Keyboard shortcuts

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