controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 9 Imported by: 0

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)

Jump to

Keyboard shortcuts

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