tests

package
v0.0.0-...-2d88b26 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArticleComment

func CreateArticleComment(article *models.Article, group *models.Group, user *models.User) (*models.ArticleComment, error)

func CreateArticleLike

func CreateArticleLike(article *models.Article, group *models.Group, user *models.User) (*models.ArticleLike, error)

func CreateGroupArticle

func CreateGroupArticle(article *models.Article, group *models.Group, user *models.User) (*models.GroupArticle, error)

func CreateGroupMember

func CreateGroupMember(user *models.User, group *models.Group) (*models.GroupMember, error)

func CreateTestArticle

func CreateTestArticle(user *models.User) (*models.Article, error)

func CreateTestArticleContent

func CreateTestArticleContent(article *models.Article) (*models.ArticleContent, error)

func CreateTestGroup

func CreateTestGroup(user *models.User) (*models.Group, error)

func CreateTestUser

func CreateTestUser() (user *models.User, privateKey *ecdsa.PrivateKey, err error)

func InitTestEnv

func InitTestEnv(configPath string)

func LoadTestAccount

func LoadTestAccount(idx int) (*keystore.KeyStore, *accounts.Account, error)

func RandString

func RandString(n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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