integrationtests

package
v0.0.0-...-65dd222 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDatabase

func ClearDatabase(client *mongo.Client)

func MakeSlug

func MakeSlug(title string) string

func MustFollowUser

func MustFollowUser(t *testing.T, followedUsername, followerToken string)

func MustRegisterUser

func MustRegisterUser(t *testing.T, registerPayload profileManagerRequests.RegisterPayload) (*identity.Identity, string)

func MustWriteArticles

func MustWriteArticles(t *testing.T, amount int, authorToken, authorUsername, authorID string) ([]*articlePublisherResponses.ArticleResponse, []string)

func MustWriteComment

func MustWriteComment(t *testing.T, writeCommentPayload articlePublisherRequests.WriteCommentPayload, articleSlug, token string) *articlePublisherResponses.CommentResponse

func UniqueEmail

func UniqueEmail(args ...string) string

func UniqueTitle

func UniqueTitle(args ...string) string

func UniqueUsername

func UniqueUsername(args ...string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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