test

package
v0.0.0-...-d702761 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestSocialMedia

func CreateTestSocialMedia(db *gorm.DB) models.SocialMedia

func GetTestUser

func GetTestUser(db *gorm.DB) (models.User, error)

func RegisterTestUser

func RegisterTestUser(db *gorm.DB) models.User

function to create a user before login test

func SetupTestDB

func SetupTestDB() *gorm.DB

func TruncateSocialMediasTable

func TruncateSocialMediasTable(db *gorm.DB)

Truncates the social media table in the given database.

func TruncateUsersTable

func TruncateUsersTable(db *gorm.DB)

Truncates the users table in the given database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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