MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / lift_memory_from_frontmatter_and_body

Function lift_memory_from_frontmatter_and_body

atomic-canonical/src/memory.rs:269–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267
268 #[test]
269 fn lift_memory_from_frontmatter_and_body() {
270 let body = "Multi-region writes must converge with no single ordering authority.";
271 let node = lift_memory(&fm(), body).unwrap();
272 assert_eq!(node.type_, "Memory");
273 assert_eq!(node.id, "urn:atomic:memory:01J8ZC4R8T");
274 assert_eq!(node.memory_kind, "constraint");
275 assert_eq!(node.status, "active");
276 assert_eq!(
277 node.about,
278 vec![
279 "urn:atomic:module:storage".to_string(),
280 "urn:atomic:module:replication".to_string()
281 ]
282 );
283 assert!(node.text.contains("no single ordering authority"));
284 }
285
286 #[test]
287 fn lift_memory_prefers_memory_container() {

Callers

nothing calls this directly

Calls 3

lift_memoryFunction · 0.85
fmFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected