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

Function test_message_command

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

Source from the content-addressed store, hash-verified

74
75 #[test]
76 fn test_message_command() {
77 let command = UserCommand::SendMessage(SendMessageCommand {
78 room: "test".to_string(),
79 content: "test".to_string(),
80 });
81
82 assert_command_serialization(&command, r#"{"_ct":"send_message","r":"test","c":"test"}"#);
83 }
84
85 #[test]
86 fn test_quit_command() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected