Documentation ¶
Index ¶
- func ClearDatabase(client *mongo.Client)
- func MakeSlug(title string) string
- func MustFollowUser(t *testing.T, followedUsername, followerToken string)
- func MustRegisterUser(t *testing.T, registerPayload profileManagerRequests.RegisterPayload) (*identity.Identity, string)
- func MustWriteArticle(t *testing.T, writeArticlePayload articlePublisherRequests.WriteArticlePayload, ...) *articlePublisherResponses.ArticleResponse
- func MustWriteArticles(t *testing.T, amount int, authorToken, authorUsername, authorID string) ([]*articlePublisherResponses.ArticleResponse, []string)
- func MustWriteComment(t *testing.T, writeCommentPayload articlePublisherRequests.WriteCommentPayload, ...) *articlePublisherResponses.CommentResponse
- func UniqueEmail(args ...string) string
- func UniqueTitle(args ...string) string
- func UniqueUsername(args ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearDatabase ¶
func MustFollowUser ¶
func MustRegisterUser ¶
func MustRegisterUser(t *testing.T, registerPayload profileManagerRequests.RegisterPayload) (*identity.Identity, string)
func MustWriteArticle ¶
func MustWriteArticle(t *testing.T, writeArticlePayload articlePublisherRequests.WriteArticlePayload, token string) *articlePublisherResponses.ArticleResponse
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 UniqueTitle ¶
func UniqueUsername ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.