testutils

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Suite

type Suite struct {
	suite.Suite
	Ctx    context.Context
	Client *ent.Client
	// contains filtered or unexported fields
}

func TestSuite

func TestSuite() *Suite

func (*Suite) AfterEach

func (s *Suite) AfterEach(fn func())

func (*Suite) BeforeEach

func (s *Suite) BeforeEach(fn func(suiteName, testName string))

func (*Suite) BeforeTest

func (s *Suite) BeforeTest(suiteName, testName string)

func (*Suite) Run

func (s *Suite) Run(testName string, tf func())

func (*Suite) SetupSubTest added in v0.4.0

func (s *Suite) SetupSubTest()

func (*Suite) TearDownSubTest added in v0.4.0

func (s *Suite) TearDownSubTest()

Jump to

Keyboard shortcuts

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