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

Function test_memory_node_id_to_path

atomic-cli/src/commands/vault/context.rs:1068–1079  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected