(node_id: &str)
| 661 | } |
| 662 | |
| 663 | fn memory_node_id_to_path(node_id: &str) -> Option<String> { |
| 664 | let (_, name) = iri::parse_memory(node_id).ok()?; |
| 665 | if name.is_empty() { |
| 666 | return None; |
| 667 | } |
| 668 | Some(format!("memory/{}.md", name)) |
| 669 | } |
| 670 | |
| 671 | /// `memory/architecture.md` -> `memory:architecture`. |
| 672 | fn memory_path_to_node_id(project: &ProjectId, path: &str) -> Option<String> { |
no test coverage detected