()
| 704 | |
| 705 | #[test] |
| 706 | fn kg_node_new_and_builder() { |
| 707 | let node = KgNode::new("change:abc123", "change", "abc123", "change_graph") |
| 708 | .with_summary("Fix auth bug") |
| 709 | .with_metadata(serde_json::json!({"view": "main"})); |
| 710 | assert_eq!(node.id, "change:abc123"); |
| 711 | assert_eq!(node.kind, "change"); |
| 712 | assert_eq!(node.summary, Some("Fix auth bug".to_string())); |
| 713 | assert!(node.metadata.is_some()); |
| 714 | } |
| 715 | |
| 716 | #[test] |
| 717 | fn kg_edge_new() { |
nothing calls this directly
no test coverage detected