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

Function test_leave_command

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

Source from the content-addressed store, hash-verified

65
66 #[test]
67 fn test_leave_command() {
68 let command = UserCommand::LeaveRoom(LeaveRoomCommand {
69 room: "test".to_string(),
70 });
71
72 assert_command_serialization(&command, r#"{"_ct":"leave_room","r":"test"}"#);
73 }
74
75 #[test]
76 fn test_message_command() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected