()
| 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() { |
nothing calls this directly
no test coverage detected