tests

package
v0.0.0-...-6a61234 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessToken

func AccessToken(db *ent.Client) string

func AnotherAccessToken

func AnotherAccessToken(db *ent.Client) string

func CloseTestDatabase

func CloseTestDatabase(db *ent.Client)

func ConvertDateTime

func ConvertDateTime(timeObj time.Time) string

func CreateAnotherTestVerifiedUser

func CreateAnotherTestVerifiedUser(db *ent.Client) *ent.User

func CreateChat

func CreateChat(db *ent.Client) *ent.Chat

CHAT FIXTURES

func CreateCity

func CreateCity(db *ent.Client) *ent.City

PROFILE FIXTURES

func CreateComment

func CreateComment(db *ent.Client) *ent.Comment

func CreateFriend

func CreateFriend(db *ent.Client, status friend.Status) *ent.Friend

func CreateGroupChat

func CreateGroupChat(db *ent.Client) *ent.Chat

func CreateJwt

func CreateJwt(db *ent.Client, user *ent.User) *ent.User

func CreateMessage

func CreateMessage(db *ent.Client) *ent.Message

func CreateNotification

func CreateNotification(db *ent.Client) *ent.Notification

func CreatePost

func CreatePost(db *ent.Client) *ent.Post

FEED FIXTURES

func CreateReaction

func CreateReaction(db *ent.Client) *ent.Reaction

func CreateReply

func CreateReply(db *ent.Client) *ent.Reply

func CreateTables

func CreateTables(db *ent.Client)

func CreateTestUser

func CreateTestUser(db *ent.Client) *ent.User

AUTH FIXTURES

func CreateTestVerifiedUser

func CreateTestVerifiedUser(db *ent.Client) *ent.User

func DropData

func DropData(db *ent.Client)

func GetUserMap

func GetUserMap(user *ent.User) map[string]interface{}

Utils

func ParseResponseBody

func ParseResponseBody(t *testing.T, b io.ReadCloser) interface{}

func ProcessTestBody

func ProcessTestBody(t *testing.T, app *fiber.App, url string, method string, body interface{}, access ...string) *http.Response

func Setup

func Setup(t *testing.T, app *fiber.App) *ent.Client

func SetupTestDatabase

func SetupTestDatabase() *ent.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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