executeablefunctions

package
v0.0.0-...-814233f Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDeleteProfileErrorResponses

func AssertDeleteProfileErrorResponses(t *testing.T, responseInterface map[string]interface{})

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

func AssertErrorResponse(t *testing.T, responseMap map[string]interface{}, statusCode int)

AssertErrorResponse asserts error responses based on the provided status code.

func ConvertToFloat64

func ConvertToFloat64(value interface{}) (float64, error)

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 ExecuteDeleteProfileTest

func ExecuteDeleteProfileTest(t *testing.T, v testdata.DeleteUserProfileSampleCase, r *gin.Engine)

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.

Jump to

Keyboard shortcuts

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