()
| 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() { |
nothing calls this directly
no test coverage detected