Documentation
¶
Index ¶
- func AssertDeleteProfileErrorResponses(t *testing.T, responseInterface map[string]interface{})
- func AssertErrorMessages(t *testing.T, responseMap map[string]interface{}, ...)
- func AssertErrorResponse(t *testing.T, responseMap map[string]interface{}, statusCode int)
- func ConvertToFloat64(value interface{}) (float64, error)
- func ExecuteCreateCommentReplyes(t *testing.T, samples []testdata.CreateCommentReplyesTestCase, ...)
- func ExecuteCreateComments(t *testing.T, samples []testdata.CreateCommentTestCase, ...)
- func ExecuteCreatePostTest(t *testing.T, samples []testdata.CreatePostTestCase, ...)
- func ExecuteCreateProfileTestCase(t *testing.T, samples []testdata.CreateProfileTestCase, loginUserID uint, ...)
- func ExecuteCreateUserTestCase(t *testing.T, samples []testdata.CreateUserTestCase, ...)
- func ExecuteDeleteCommentReplye(t *testing.T, samples []testdata.DeleteCommentReplyesTestCase, ...)
- func ExecuteDeleteComments(t *testing.T, samples []testdata.DeleteCommentsTestCase, ...)
- func ExecuteDeletePost(t *testing.T, samples []testdata.DeletePostTestCase, ...)
- func ExecuteDeleteProfileTest(t *testing.T, v testdata.DeleteUserProfileSampleCase, r *gin.Engine)
- func ExecuteDeleteUserTest(t *testing.T, samples []testdata.DeleteUserTestCase, ...)
- func ExecuteGetCommentReplyes(t *testing.T, samples []testdata.GetCommentReplyeTestCase, ...)
- func ExecuteGetComments(t *testing.T, samples []testdata.GetCommentTestCase, ...)
- func ExecuteGetPostByID(t *testing.T, samples []testdata.GetPostByIdTestCase, ...)
- func ExecuteGetUserByIdTestCase(t *testing.T, samples []testdata.GetUserByIDTestCase, ...)
- func ExecuteUpdateCommentReplye(t *testing.T, samples []testdata.UpdateCommentReplyesTestCase, ...)
- func ExecuteUpdateComments(t *testing.T, samples []testdata.UpdateCommentsTestCase, ...)
- func ExecuteUpdatePost(t *testing.T, samples []testdata.UpdatePostTestCase, ...)
- func ExecuteUpdateProfileTest(t *testing.T, samples []testdata.UpdateProfileTestCase, ...)
- func ExecuteUpdateUserTest(t *testing.T, samples []testdata.UpdateUserTestCase, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDeleteProfileErrorResponses ¶
AssertDeleteProfileErrorResponses asserts error responses for profile deletion.
func AssertErrorMessages ¶
func AssertErrorMessages(t *testing.T, responseMap map[string]interface{}, errorMessages map[string]string)
AssertErrorMessages asserts specific error messages in the response map.
func AssertErrorResponse ¶
AssertErrorResponse asserts error responses based on the provided status code.
func ConvertToFloat64 ¶
func ExecuteCreateCommentReplyes ¶
func ExecuteCreateCommentReplyes(t *testing.T, samples []testdata.CreateCommentReplyesTestCase, server *controllers.Server)
func ExecuteCreateComments ¶
func ExecuteCreateComments(t *testing.T, samples []testdata.CreateCommentTestCase, server *controllers.Server)
func ExecuteCreatePostTest ¶
func ExecuteCreatePostTest(t *testing.T, samples []testdata.CreatePostTestCase, server *controllers.Server)
func ExecuteCreateProfileTestCase ¶
func ExecuteCreateProfileTestCase(t *testing.T, samples []testdata.CreateProfileTestCase, loginUserID uint, server *controllers.Server)
ExecuteCreateProfileTestCase executes a test case for creating a user profile.
func ExecuteCreateUserTestCase ¶
func ExecuteCreateUserTestCase(t *testing.T, samples []testdata.CreateUserTestCase, server *controllers.Server)
func ExecuteDeleteCommentReplye ¶
func ExecuteDeleteCommentReplye(t *testing.T, samples []testdata.DeleteCommentReplyesTestCase, server *controllers.Server)
func ExecuteDeleteComments ¶
func ExecuteDeleteComments(t *testing.T, samples []testdata.DeleteCommentsTestCase, server *controllers.Server, postID float64)
func ExecuteDeletePost ¶
func ExecuteDeletePost(t *testing.T, samples []testdata.DeletePostTestCase, server *controllers.Server)
func ExecuteDeleteUserTest ¶
func ExecuteDeleteUserTest(t *testing.T, samples []testdata.DeleteUserTestCase, server *controllers.Server)
func ExecuteGetCommentReplyes ¶
func ExecuteGetCommentReplyes(t *testing.T, samples []testdata.GetCommentReplyeTestCase, server *controllers.Server)
func ExecuteGetComments ¶
func ExecuteGetComments(t *testing.T, samples []testdata.GetCommentTestCase, server *controllers.Server)
func ExecuteGetPostByID ¶
func ExecuteGetPostByID(t *testing.T, samples []testdata.GetPostByIdTestCase, server *controllers.Server)
func ExecuteGetUserByIdTestCase ¶
func ExecuteGetUserByIdTestCase(t *testing.T, samples []testdata.GetUserByIDTestCase, server *controllers.Server)
func ExecuteUpdateCommentReplye ¶
func ExecuteUpdateCommentReplye(t *testing.T, samples []testdata.UpdateCommentReplyesTestCase, server *controllers.Server)
func ExecuteUpdateComments ¶
func ExecuteUpdateComments(t *testing.T, samples []testdata.UpdateCommentsTestCase, server *controllers.Server, postID float64, secondUserID float64)
func ExecuteUpdatePost ¶
func ExecuteUpdatePost(t *testing.T, samples []testdata.UpdatePostTestCase, server *controllers.Server)
func ExecuteUpdateProfileTest ¶
func ExecuteUpdateProfileTest(t *testing.T, samples []testdata.UpdateProfileTestCase, server *controllers.Server)
ExecuteUpdateProfileTest executes a test case for updating a user profile.
func ExecuteUpdateUserTest ¶
func ExecuteUpdateUserTest(t *testing.T, samples []testdata.UpdateUserTestCase, server *controllers.Server)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.