Documentation
¶
Index ¶
- Constants
- func CheckForum(c *client.Forum, forum *models.Forum)
- func CheckForumCreateConflict(c *client.Forum)
- func CheckForumCreateSimple(c *client.Forum)
- func CheckForumCreateUnicode(c *client.Forum)
- func CheckForumCreateUserCase(c *client.Forum)
- func CheckForumCreateUserNotFound(c *client.Forum)
- func CheckForumGetOneNocase(c *client.Forum)
- func CheckForumGetOneNotFound(c *client.Forum)
- func CheckForumGetOneSimple(c *client.Forum)
- func CheckIsType(expectedType interface{}, object interface{})
- func CheckNil(err interface{})
- func CheckPost(c *client.Forum, thread *models.Thread)
- func CheckPostCreateSimple(c *client.Forum)
- func CheckThread(c *client.Forum, thread *models.Thread)
- func CheckThreadCreateSimple(c *client.Forum)
- func CheckUser(c *client.Forum, user *models.User)
- func CheckUserCreateConflict(c *client.Forum)
- func CheckUserCreateSimple(c *client.Forum)
- func CheckUserCreateUnicode(c *client.Forum)
- func CheckUserGetOneNocase(c *client.Forum)
- func CheckUserGetOneNotFound(c *client.Forum)
- func CheckUserGetOneSimple(c *client.Forum)
- func CheckUserUpdateConflict(c *client.Forum)
- func CheckUserUpdateEmpty(c *client.Forum)
- func CheckUserUpdateNotFound(c *client.Forum)
- func CheckUserUpdatePart(c *client.Forum)
- func CheckUserUpdateSimple(c *client.Forum)
- func Checkpoint(c *client.Forum, message string)
- 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 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 ObjectsAreEqual(expected, actual interface{}) bool
- func RandomEmail() strfmt.Email
- func RandomForum() *models.Forum
- func RandomNickname() string
- func RandomPost() *models.Post
- func RandomThread() *models.Thread
- func RandomUser() *models.User
- func Register(checker Checker)
- func RequestToText(req *http.Request) string
- func ResponseToText(res *http.Response) string
- func Run()
- func RunCheck(check Checker, report *Report)
- func ToJson(obj interface{}) string
- type Checker
- type CheckerTransport
- type Filter
- type Report
- 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_-"
Variables ¶
This section is empty.
Functions ¶
func CheckForumCreateSimple ¶
func CheckForumCreateUnicode ¶
func CheckForumGetOneNocase ¶
func CheckForumGetOneSimple ¶
func CheckIsType ¶
func CheckIsType(expectedType interface{}, object interface{})
func CheckPostCreateSimple ¶
func CheckThreadCreateSimple ¶
func CheckUserCreateConflict ¶
func CheckUserCreateSimple ¶
func CheckUserCreateUnicode ¶
func CheckUserGetOneNocase ¶
func CheckUserGetOneNotFound ¶
func CheckUserGetOneSimple ¶
func CheckUserUpdateConflict ¶
func CheckUserUpdateEmpty ¶
func CheckUserUpdateNotFound ¶
func CheckUserUpdatePart ¶
func CheckUserUpdateSimple ¶
func Checkpoint ¶
func CreateForum ¶
func CreatePost ¶
func CreateThread ¶
func ObjectsAreEqual ¶
func ObjectsAreEqual(expected, actual interface{}) bool
func RandomEmail ¶
func RandomForum ¶
func RandomNickname ¶
func RandomNickname() string
func RandomPost ¶
func RandomThread ¶
func RandomUser ¶
func RequestToText ¶
func ResponseToText ¶
Types ¶
type CheckerTransport ¶
type CheckerTransport struct {
// contains filtered or unexported fields
}
func (*CheckerTransport) Submit ¶
func (self *CheckerTransport) Submit(operation *runtime.ClientOperation) (interface{}, error)
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
func (*Report) Checkpoint ¶
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)
Click to show internal directories.
Click to hide internal directories.