Documentation
¶
Index ¶
- func AccessToken(db *gorm.DB) string
- func AnotherAccessToken(db *gorm.DB) string
- func CloseTestDatabase(db *gorm.DB)
- func ConvertDateTime(timeObj time.Time) string
- func CreateAnotherTestVerifiedUser(db *gorm.DB) models.User
- func CreateChat(db *gorm.DB) models.Chat
- func CreateCity(db *gorm.DB) models.City
- func CreateComment(db *gorm.DB) models.Comment
- func CreateFriend(db *gorm.DB, status choices.FriendStatusChoice) models.Friend
- func CreateGroupChat(db *gorm.DB) models.Chat
- func CreateJwt(db *gorm.DB, user models.User) models.User
- func CreateMessage(db *gorm.DB) models.Message
- func CreateNotification(db *gorm.DB) models.Notification
- func CreatePost(db *gorm.DB) models.Post
- func CreateReaction(db *gorm.DB) models.Reaction
- func CreateReply(db *gorm.DB) models.Reply
- func CreateSingleTable(db *gorm.DB, model interface{})
- func CreateTestUser(db *gorm.DB) models.User
- func CreateTestVerifiedUser(db *gorm.DB) models.User
- func DropAndCreateSingleTable(db *gorm.DB, model interface{})
- func GetUserMap(user models.User) map[string]interface{}
- func ParseResponseBody(t *testing.T, b io.ReadCloser) interface{}
- func ProcessTestBody(t *testing.T, app *fiber.App, url string, method string, body interface{}, ...) *http.Response
- func RemoveCreatedAndUpdated(body map[string]interface{}, dataType string)
- func Setup(t *testing.T, app *fiber.App) *gorm.DB
- func SetupTestDatabase(t *testing.T) *gorm.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessToken ¶
func AnotherAccessToken ¶
func CloseTestDatabase ¶
func ConvertDateTime ¶
func CreateFriend ¶
func CreateNotification ¶
func CreateNotification(db *gorm.DB) models.Notification
func CreateSingleTable ¶
func ParseResponseBody ¶
func ParseResponseBody(t *testing.T, b io.ReadCloser) interface{}
func ProcessTestBody ¶
func RemoveCreatedAndUpdated ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.