()
| 948 | |
| 949 | #[test] |
| 950 | fn kg_node_new_and_builder() { |
| 951 | let node = KgNode::new("change:abc123", "change", "abc123", "change_graph") |
| 952 | .with_summary("Fix auth bug") |
| 953 | .with_metadata(serde_json::json!({"view": "main"})); |
| 954 | assert_eq!(node.id, "change:abc123"); |
| 955 | assert_eq!(node.kind, "change"); |
| 956 | assert_eq!(node.summary, Some("Fix auth bug".to_string())); |
| 957 | assert!(node.metadata.is_some()); |
| 958 | } |
| 959 | |
| 960 | #[test] |
| 961 | fn kg_edge_new() { |
nothing calls this directly
no test coverage detected