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

Function test_resolve_node_ids_variable

atomic-repository/src/query_plan.rs:576–587  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

574
575 #[test]
576 fn test_resolve_node_ids_variable() {
577 let mut bindings = HashMap::new();
578 bindings.insert(
579 "results".to_string(),
580 vec![
581 KgNode::new("intent:PIMO-1", "intent", "PIMO-1", "test"),
582 KgNode::new("intent:PIMO-2", "intent", "PIMO-2", "test"),
583 ],
584 );
585 let ids = resolve_node_ids("$results", &bindings);
586 assert_eq!(ids, vec!["intent:PIMO-1", "intent:PIMO-2"]);
587 }
588
589 #[test]
590 fn test_resolve_node_ids_missing_variable() {

Callers

nothing calls this directly

Calls 2

resolve_node_idsFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected