MCPcopy Create free account
hub / github.com/ZettaScaleLabs/hiroz / test_parse_empty_message

Function test_parse_empty_message

crates/hiroz-codegen/src/parser/msg.rs:189–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187
188 #[test]
189 fn test_parse_empty_message() {
190 let msg_content = "# Just comments\n# Nothing else";
191 let path = PathBuf::from("Empty.msg");
192
193 let msg = parse_msg_string(msg_content, "test_msgs", &path).unwrap();
194
195 assert_eq!(msg.fields.len(), 0);
196 assert_eq!(msg.constants.len(), 0);
197 }
198
199 #[test]
200 fn test_parse_std_msgs_string() {

Callers

nothing calls this directly

Calls 1

parse_msg_stringFunction · 0.85

Tested by

no test coverage detected