()
| 666 | |
| 667 | #[test] |
| 668 | fn kg_node_new_and_builder() { |
| 669 | let node = KgNode::new("change:abc123", "change", "abc123", "change_graph") |
| 670 | .with_summary("Fix auth bug") |
| 671 | .with_metadata(serde_json::json!({"view": "main"})); |
| 672 | assert_eq!(node.id, "change:abc123"); |
| 673 | assert_eq!(node.kind, "change"); |
| 674 | assert_eq!(node.summary, Some("Fix auth bug".to_string())); |
| 675 | assert!(node.metadata.is_some()); |
| 676 | } |
| 677 | |
| 678 | #[test] |
| 679 | fn kg_edge_new() { |
nothing calls this directly
no test coverage detected