Documentation
¶
Index ¶
- Constants
- func CheckClear(c *client.Forum)
- func CheckForum(c *client.Forum, forum *models.Forum)
- func CheckForumCreateConflict(c *client.Forum, m *Modify)
- func CheckForumCreateSimple(c *client.Forum)
- func CheckForumCreateUnicode(c *client.Forum)
- func CheckForumCreateUserCase(c *client.Forum, m *Modify)
- func CheckForumCreateUserNotFound(c *client.Forum)
- func CheckForumGetOneNocase(c *client.Forum, m *Modify)
- func CheckForumGetOneNotFound(c *client.Forum)
- func CheckForumGetOneSimple(c *client.Forum)
- func CheckForumGetThreadsNotFound(c *client.Forum, m *Modify)
- func CheckForumGetThreadsSimple(c *client.Forum, m *Modify)
- func CheckForumGetUsersEmpty(c *client.Forum, m *Modify)
- func CheckForumGetUsersNotFound(c *client.Forum, m *Modify)
- func CheckForumGetUsersSimple(c *client.Forum, m *Modify)
- func CheckForumGetUsersVote(c *client.Forum, m *Modify)
- func CheckIsType(expectedType interface{}, object interface{})
- func CheckNil(err interface{})
- func CheckPost(c *client.Forum, post *models.Post)
- func CheckPostCreateDeepParent(c *client.Forum)
- func CheckPostCreateEmpty(c *client.Forum, m *Modify)
- func CheckPostCreateInvalidParent(c *client.Forum, m *Modify)
- func CheckPostCreateNoAuthor(c *client.Forum, m *Modify)
- func CheckPostCreateNoThread(c *client.Forum, m *Modify)
- func CheckPostCreateSimple(c *client.Forum, m *Modify)
- func CheckPostCreateUnicode(c *client.Forum)
- func CheckPostCreateWithParent(c *client.Forum)
- func CheckPostGetOneNotFound(c *client.Forum, m *Modify)
- func CheckPostGetOneRelated(c *client.Forum, m *Modify)
- func CheckPostGetOneSimple(c *client.Forum)
- func CheckPostUpdateCase(c *client.Forum)
- func CheckPostUpdateEmpty(c *client.Forum)
- func CheckPostUpdateNotFound(c *client.Forum)
- func CheckPostUpdateSame(c *client.Forum)
- func CheckPostUpdateSimple(c *client.Forum)
- func CheckStatus(c *client.Forum)
- func CheckThread(c *client.Forum, thread *models.Thread)
- func CheckThreadCreateConflict(c *client.Forum, m *Modify)
- func CheckThreadCreateNoAuthor(c *client.Forum)
- func CheckThreadCreateNoCase(c *client.Forum, m *Modify)
- func CheckThreadCreateNoForum(c *client.Forum)
- func CheckThreadCreateSimple(c *client.Forum, m *Modify)
- func CheckThreadCreateUnicode(c *client.Forum)
- func CheckThreadGetOneNotFound(c *client.Forum)
- func CheckThreadGetOneSimple(c *client.Forum, m *Modify)
- func CheckThreadGetPostsNotFound(c *client.Forum)
- func CheckThreadGetPostsSimple(c *client.Forum, m *Modify)
- func CheckThreadUpdateEmpty(c *client.Forum)
- func CheckThreadUpdateNotFound(c *client.Forum)
- func CheckThreadUpdatePart(c *client.Forum, m *Modify)
- func CheckThreadUpdateSimple(c *client.Forum, m *Modify)
- func CheckThreadVoteSimple(c *client.Forum)
- func CheckThreadVoteThreadNotFound(c *client.Forum)
- func CheckThreadVoteUserNotFound(c *client.Forum)
- func CheckUser(c *client.Forum, user *models.User)
- func CheckUserCreateConflict(c *client.Forum, m *Modify)
- func CheckUserCreateSimple(c *client.Forum)
- func CheckUserCreateUnicode(c *client.Forum)
- func CheckUserGetOneNocase(c *client.Forum, m *Modify)
- func CheckUserGetOneNotFound(c *client.Forum)
- func CheckUserGetOneSimple(c *client.Forum)
- func CheckUserUpdateConflict(c *client.Forum, m *Modify)
- func CheckUserUpdateEmpty(c *client.Forum)
- func CheckUserUpdateNotFound(c *client.Forum)
- func CheckUserUpdatePart(c *client.Forum, m *Modify)
- func CheckUserUpdateSimple(c *client.Forum)
- func Checkpoint(c *client.Forum, message string) bool
- func CreateForum(c *client.Forum, forum *models.Forum, owner *models.User) *models.Forum
- func CreatePost(c *client.Forum, post *models.Post, thread *models.Thread) *models.Post
- func CreatePosts(c *client.Forum, posts []*models.Post, thread *models.Thread) []*models.Post
- func CreateThread(c *client.Forum, thread *models.Thread, forum *models.Forum, ...) *models.Thread
- func CreateUser(c *client.Forum, user *models.User) *models.User
- func Expected(statusCode int, body interface{}, prepare Filter) context.Context
- func GetBody(stream *io.ReadCloser) ([]byte, error)
- func GetDelta(data []byte, expected interface{}, prepare Filter) string
- func GetDiff(actual string, expected string) string
- func InvertCase(str string) string
- func Modifications(checker func(c *client.Forum, modify *Modify)) func(c *client.Forum)
- func ObjectsAreEqual(expected, actual interface{}) bool
- func RandomEmail() strfmt.Email
- func RandomForum() *models.Forum
- func RandomMarker() string
- func RandomNickname() string
- func RandomPost() *models.Post
- func RandomThread() *models.Thread
- func RandomTime() time.Time
- func RandomUser() *models.User
- func Register(checker Checker)
- func RequestToText(req *http.Request) string
- func ResponseToText(res *http.Response) string
- func Run(url *url.URL) int
- func RunCheck(check Checker, report *Report, cfg *client.TransportConfig)
- func SortPosts(posts []OrderedPost, desc bool, limitType func(OrderedPost) int, limit int) [][]*models.Post
- func ToJson(obj interface{}) string
- type Checker
- type CheckerTransport
- type Filter
- type Modify
- type OrderedPost
- type PostSortTree
- type Report
- type ThreadByCreated
- type UserByNickname
- type Validator
Constants ¶
View Source
const ( KEY_STATUS = "expected-status" KEY_BODY = "expected-body" KEY_FILTER = "expected-filter" )
View Source
const ( REPORT_FAILED = 0 REPORT_SKIPPED = 1 REPORT_SUCCESS = 2 )
View Source
const ABC_NICK = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_."
View Source
const ABC_SLUG = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-"
View Source
const POST_FAKE_ID int64 = 2139800938
View Source
const THREAD_FAKE_ID = "2139800939"
Variables ¶
This section is empty.
Functions ¶
func CheckClear ¶ added in v0.1.0
func CheckForumCreateSimple ¶
func CheckForumCreateUnicode ¶
func CheckForumGetOneNocase ¶
func CheckForumGetOneSimple ¶
func CheckForumGetThreadsNotFound ¶ added in v0.1.0
func CheckForumGetThreadsSimple ¶ added in v0.1.0
func CheckForumGetUsersEmpty ¶ added in v0.1.0
func CheckForumGetUsersNotFound ¶ added in v0.1.0
func CheckForumGetUsersSimple ¶ added in v0.1.0
func CheckForumGetUsersVote ¶ added in v0.1.0
func CheckIsType ¶
func CheckIsType(expectedType interface{}, object interface{})
func CheckPostCreateDeepParent ¶ added in v0.1.0
func CheckPostCreateEmpty ¶ added in v0.1.0
func CheckPostCreateInvalidParent ¶ added in v0.1.0
func CheckPostCreateNoAuthor ¶ added in v0.1.0
func CheckPostCreateNoThread ¶ added in v0.1.0
func CheckPostCreateSimple ¶
func CheckPostCreateUnicode ¶ added in v0.1.0
func CheckPostCreateWithParent ¶ added in v0.1.0
func CheckPostGetOneNotFound ¶ added in v0.1.0
func CheckPostGetOneRelated ¶ added in v0.1.0
func CheckPostGetOneSimple ¶ added in v0.1.0
func CheckPostUpdateCase ¶ added in v0.1.0
func CheckPostUpdateEmpty ¶ added in v0.1.0
func CheckPostUpdateNotFound ¶ added in v0.1.0
func CheckPostUpdateSame ¶ added in v0.1.0
func CheckPostUpdateSimple ¶ added in v0.1.0
func CheckStatus ¶ added in v0.1.0
func CheckThreadCreateConflict ¶ added in v0.1.0
func CheckThreadCreateNoAuthor ¶ added in v0.1.0
func CheckThreadCreateNoCase ¶ added in v0.1.0
func CheckThreadCreateNoForum ¶ added in v0.1.0
func CheckThreadCreateSimple ¶
func CheckThreadCreateUnicode ¶ added in v0.1.0
func CheckThreadGetOneNotFound ¶ added in v0.1.0
func CheckThreadGetOneSimple ¶ added in v0.1.0
func CheckThreadGetPostsNotFound ¶ added in v0.1.0
func CheckThreadGetPostsSimple ¶ added in v0.1.0
func CheckThreadUpdateEmpty ¶ added in v0.1.0
func CheckThreadUpdateNotFound ¶ added in v0.1.0
func CheckThreadUpdatePart ¶ added in v0.1.0
func CheckThreadUpdateSimple ¶ added in v0.1.0
func CheckThreadVoteSimple ¶ added in v0.1.0
func CheckThreadVoteThreadNotFound ¶ added in v0.1.0
func CheckThreadVoteUserNotFound ¶ added in v0.1.0
func CheckUserCreateConflict ¶
func CheckUserCreateSimple ¶
func CheckUserCreateUnicode ¶
func CheckUserGetOneNocase ¶
func CheckUserGetOneNotFound ¶
func CheckUserGetOneSimple ¶
func CheckUserUpdateConflict ¶
func CheckUserUpdateEmpty ¶
func CheckUserUpdateNotFound ¶
func CheckUserUpdatePart ¶
func CheckUserUpdateSimple ¶
func CreateForum ¶
func CreatePost ¶
func CreatePosts ¶ added in v0.1.0
func CreateThread ¶
func InvertCase ¶ added in v0.1.0
func Modifications ¶ added in v0.1.0
func ObjectsAreEqual ¶
func ObjectsAreEqual(expected, actual interface{}) bool
func RandomEmail ¶
func RandomForum ¶
func RandomMarker ¶ added in v0.1.0
func RandomMarker() string
func RandomNickname ¶
func RandomNickname() string
func RandomPost ¶
func RandomThread ¶
func RandomTime ¶ added in v0.1.0
func RandomUser ¶
func RequestToText ¶
func ResponseToText ¶
func SortPosts ¶ added in v0.1.0
func SortPosts(posts []OrderedPost, desc bool, limitType func(OrderedPost) int, limit int) [][]*models.Post
Types ¶
type CheckerTransport ¶
type CheckerTransport struct {
// contains filtered or unexported fields
}
func (*CheckerTransport) Submit ¶
func (self *CheckerTransport) Submit(operation *runtime.ClientOperation) (interface{}, error)
type OrderedPost ¶ added in v0.1.0
type OrderedPost struct {
// contains filtered or unexported fields
}
func CreateTree ¶ added in v0.1.0
func CreateTree(c *client.Forum, thread *models.Thread) []OrderedPost
type PostSortTree ¶ added in v0.1.0
type PostSortTree []OrderedPost
func (PostSortTree) Len ¶ added in v0.1.0
func (a PostSortTree) Len() int
func (PostSortTree) Less ¶ added in v0.1.0
func (a PostSortTree) Less(i, j int) bool
func (PostSortTree) Swap ¶ added in v0.1.0
func (a PostSortTree) Swap(i, j int)
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
func (*Report) Checkpoint ¶
type ThreadByCreated ¶ added in v0.1.0
func (ThreadByCreated) Len ¶ added in v0.1.0
func (a ThreadByCreated) Len() int
func (ThreadByCreated) Less ¶ added in v0.1.0
func (a ThreadByCreated) Less(i, j int) bool
func (ThreadByCreated) Swap ¶ added in v0.1.0
func (a ThreadByCreated) Swap(i, j int)
type UserByNickname ¶
func (UserByNickname) Len ¶
func (a UserByNickname) Len() int
func (UserByNickname) Less ¶
func (a UserByNickname) Less(i, j int) bool
func (UserByNickname) Swap ¶
func (a UserByNickname) Swap(i, j int)
Source Files
¶
- check_clear.go
- check_forum_create.go
- check_forum_get_one.go
- check_forum_get_threads.go
- check_forum_get_users.go
- check_post_get_one.go
- check_post_update.go
- check_posts_create.go
- check_status.go
- check_thread_create.go
- check_thread_get_one.go
- check_thread_get_posts.go
- check_thread_update.go
- check_thread_vote.go
- check_user_create.go
- check_user_get_one.go
- check_user_update.go
- checker.go
- common.go
- expected.go
- factory.go
- modify.go
- report.go
Click to show internal directories.
Click to hide internal directories.