()
| 1084 | |
| 1085 | #[test] |
| 1086 | fn kg_node_new_and_builder() { |
| 1087 | let node = KgNode::new( |
| 1088 | "change:abc123", |
| 1089 | crate::kg::ontology::Class::Change, |
| 1090 | "abc123", |
| 1091 | "change_graph", |
| 1092 | ) |
| 1093 | .with_summary("Fix auth bug") |
| 1094 | .with_metadata(serde_json::json!({"view": "main"})); |
| 1095 | assert_eq!(node.id, "change:abc123"); |
| 1096 | assert!(node.has_type(crate::kg::ontology::Class::Change)); |
| 1097 | assert_eq!(node.summary, Some("Fix auth bug".to_string())); |
| 1098 | assert!(node.metadata.is_some()); |
| 1099 | } |
| 1100 | |
| 1101 | #[test] |
| 1102 | fn kg_edge_new() { |
nothing calls this directly
no test coverage detected