()
| 898 | |
| 899 | #[test] |
| 900 | fn kg_node_new_and_builder() { |
| 901 | let node = KgNode::new("change:abc123", "change", "abc123", "change_graph") |
| 902 | .with_summary("Fix auth bug") |
| 903 | .with_metadata(serde_json::json!({"view": "main"})); |
| 904 | assert_eq!(node.id, "change:abc123"); |
| 905 | assert_eq!(node.kind, "change"); |
| 906 | assert_eq!(node.summary, Some("Fix auth bug".to_string())); |
| 907 | assert!(node.metadata.is_some()); |
| 908 | } |
| 909 | |
| 910 | #[test] |
| 911 | fn kg_edge_new() { |
nothing calls this directly
no test coverage detected