Documentation ¶
Overview ¶
Package tests provides the base test suite for the entire package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestSuite ¶
type TestSuite struct { AppConfig *config.AppConfig // App config Router *gin.Engine // Gin router with handlers Services *config.AppServices // Services suite.Suite // Extends the suite.Suite package }
TestSuite is for testing the entire package using real/mocked services
func (*TestSuite) BaseSetupSuite ¶
func (ts *TestSuite) BaseSetupSuite()
BaseSetupSuite runs at the start of the suite
func (*TestSuite) BaseSetupTest ¶
func (ts *TestSuite) BaseSetupTest()
BaseSetupTest runs before each test
func (*TestSuite) BaseTearDownSuite ¶
func (ts *TestSuite) BaseTearDownSuite()
BaseTearDownSuite runs after the suite finishes
func (*TestSuite) BaseTearDownTest ¶
func (ts *TestSuite) BaseTearDownTest()
BaseTearDownTest runs after each test
Click to show internal directories.
Click to hide internal directories.