MCPcopy Create free account
hub / github.com/Yengas/rust-chat-server / test_join_command

Function test_join_command

comms/src/command.rs:58–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57 #[test]
58 fn test_join_command() {
59 let command = UserCommand::JoinRoom(JoinRoomCommand {
60 room: "test".to_string(),
61 });
62
63 assert_command_serialization(&command, r#"{"_ct":"join_room","r":"test"}"#);
64 }
65
66 #[test]
67 fn test_leave_command() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected