Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestHelper ¶
type TestHelper struct {
DB *gorm.DB
BaseConfig config.BaseConfig
MockDB sqlmock.Sqlmock
SqlDB *sql.DB
}
TestHelper provides utilities for testing
func NewTestHelper ¶
func NewTestHelper() *TestHelper
NewTestHelper creates a new test helper with mock database
func (*TestHelper) CleanupDB ¶
func (th *TestHelper) CleanupDB()
CleanupDB cleans up the test database
func (*TestHelper) CreateTestUser ¶
func (th *TestHelper) CreateTestUser(email, name, password string) model.Users
CreateTestUser creates a test user (for testing purposes - returns mock data)
Click to show internal directories.
Click to hide internal directories.