Documentation ¶
Index ¶
- func AccessToken(db *ent.Client) string
- func AnotherAccessToken(db *ent.Client) string
- func CloseTestDatabase(db *ent.Client)
- func ConvertDateTime(timeObj time.Time) string
- func CreateAnotherTestVerifiedUser(db *ent.Client) *ent.User
- func CreateChat(db *ent.Client) *ent.Chat
- func CreateCity(db *ent.Client) *ent.City
- func CreateComment(db *ent.Client) *ent.Comment
- func CreateFriend(db *ent.Client, status friend.Status) *ent.Friend
- func CreateGroupChat(db *ent.Client) *ent.Chat
- func CreateJwt(db *ent.Client, user *ent.User) *ent.User
- func CreateMessage(db *ent.Client) *ent.Message
- func CreateNotification(db *ent.Client) *ent.Notification
- func CreatePost(db *ent.Client) *ent.Post
- func CreateReaction(db *ent.Client) *ent.Reaction
- func CreateReply(db *ent.Client) *ent.Reply
- func CreateTables(db *ent.Client)
- func CreateTestUser(db *ent.Client) *ent.User
- func CreateTestVerifiedUser(db *ent.Client) *ent.User
- func DropData(db *ent.Client)
- func GetUserMap(user *ent.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 Setup(t *testing.T, app *fiber.App) *ent.Client
- func SetupTestDatabase() *ent.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessToken ¶
func AnotherAccessToken ¶
func CloseTestDatabase ¶
func ConvertDateTime ¶
func CreateNotification ¶
func CreateNotification(db *ent.Client) *ent.Notification
func CreateTables ¶
func ParseResponseBody ¶
func ParseResponseBody(t *testing.T, b io.ReadCloser) interface{}
func ProcessTestBody ¶
func SetupTestDatabase ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.