()
| 1100 | |
| 1101 | #[test] |
| 1102 | fn kg_edge_new() { |
| 1103 | let edge = KgEdge::new( |
| 1104 | "change:abc", |
| 1105 | "file:src/auth.rs", |
| 1106 | crate::kg::ontology::Predicate::ModifiesFile, |
| 1107 | ); |
| 1108 | assert_eq!(edge.from_id, "change:abc"); |
| 1109 | assert_eq!(edge.to_id, "file:src/auth.rs"); |
| 1110 | assert_eq!(edge.kind, crate::kg::ontology::Predicate::ModifiesFile); |
| 1111 | assert!(edge.metadata.is_none()); |
| 1112 | } |
| 1113 | |
| 1114 | #[test] |
| 1115 | fn kg_subgraph_empty() { |
nothing calls this directly
no outgoing calls
no test coverage detected