(nodes: &'a [KgNode], id: &str)
| 646 | node |
| 647 | } |
| 648 | fn usage<'a>(nodes: &'a [KgNode], id: &str) -> &'a serde_json::Value { |
| 649 | &nodes |
| 650 | .iter() |
| 651 | .find(|node| node.id == id) |
| 652 | .unwrap() |
| 653 | .metadata |
| 654 | .as_ref() |
| 655 | .unwrap()["ai_usage"] |
| 656 | } |
| 657 | |
| 658 | #[test] |
| 659 | fn intent_scopes_exclude_dependency_only_history_and_deduplicate_all_associations() { |