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

Function test_todo_item_creation

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

Source from the content-addressed store, hash-verified

84
85 #[test]
86 fn test_todo_item_creation() {
87 let item = TodoItem::new("test", "content");
88 assert_eq!(item.title, "test");
89 assert_eq!(item.content, "content");
90 }
91
92 #[test]
93 fn test_serialization_roundtrip() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected