MCPcopy Create free account
hub / github.com/InkSha/rust-tutorial / test_serialization_roundtrip

Function test_serialization_roundtrip

src/todo/core.rs:93–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92 #[test]
93 fn test_serialization_roundtrip() {
94 let original = TodoItem::new("test", "content");
95 let serialized = original.serialize();
96 let deserialized = TodoItem::deserialize(serialized);
97
98 assert_eq!(original.title, deserialized.title);
99 assert_eq!(original.content, deserialized.content);
100 }
101}

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.80

Tested by

no test coverage detected