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

Function test_memory_path_to_node_id

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

Source from the content-addressed store, hash-verified

1095
1096 #[test]
1097 fn test_memory_path_to_node_id() {
1098 let project = ProjectId::generate();
1099 assert_eq!(
1100 memory_path_to_node_id(&project, "memory/architecture.md"),
1101 Some(iri::mint_memory(&project, "architecture"))
1102 );
1103 assert_eq!(
1104 memory_path_to_node_id(&project, "intents/x/intent.md"),
1105 None
1106 );
1107 }
1108
1109 #[test]
1110 fn test_rank_score_decreases() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected