tests

package
v0.0.0-...-bf8641f Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) (string, error)

func TestCreatePost

func TestCreatePost(client socialnetwork_pb.PostServiceClient, username string, content string, token string) string

func TestDeletePost

func TestDeletePost(client socialnetwork_pb.PostServiceClient, postId string, token string)

func TestEditUser

func TestEditUser(client socialnetwork_pb.UserServiceClient, user *socialnetwork_pb.User, token string)

func TestFollow

func TestFollow(client socialnetwork_pb.FollowServiceClient, follower string, followed string, token string)

func TestGetFollowingUsers

func TestGetFollowingUsers(client socialnetwork_pb.FollowServiceClient, username string, token string)

func TestGetPost

func TestGetPost(client socialnetwork_pb.PostServiceClient, postId string, token string)

func TestGetUser

func TestGetUser(client socialnetwork_pb.UserServiceClient, username string, token string)

func TestGetUserPosts

func TestGetUserPosts(client socialnetwork_pb.PostServiceClient, username string, token string)

func TestLogin

func TestLogin(client socialnetwork_pb.AuthClient, username, password string) (string, error)

func TestRepost

func TestRepost(client socialnetwork_pb.PostServiceClient, username string, postId string, token string) string

func TestSignUp

func TestSignUp(client socialnetwork_pb.AuthClient, user *socialnetwork_pb.User)

func TestUnfollow

func TestUnfollow(client socialnetwork_pb.FollowServiceClient, follower string, followed string, token string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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