()
| 1066 | |
| 1067 | #[test] |
| 1068 | fn test_memory_node_id_to_path() { |
| 1069 | let project = ProjectId::generate(); |
| 1070 | assert_eq!( |
| 1071 | memory_node_id_to_path(&iri::mint_memory(&project, "architecture")), |
| 1072 | Some("memory/architecture.md".to_string()) |
| 1073 | ); |
| 1074 | assert_eq!(memory_node_id_to_path("memory:"), None); |
| 1075 | assert_eq!( |
| 1076 | memory_node_id_to_path(&iri::mint_file(&project, "src/main.rs")), |
| 1077 | None |
| 1078 | ); |
| 1079 | } |
| 1080 | |
| 1081 | #[test] |
| 1082 | fn test_memory_path_from_node_prefers_metadata() { |
nothing calls this directly
no outgoing calls
no test coverage detected