()
| 1376 | |
| 1377 | #[test] |
| 1378 | fn test_edge_key_roundtrip() { |
| 1379 | let key = encode_edge_key( |
| 1380 | "change:abc", |
| 1381 | "file:auth.rs", |
| 1382 | crate::kg::ontology::Predicate::ModifiesFile.iri(), |
| 1383 | ); |
| 1384 | let (from, to, kind) = decode_edge_key(&key).unwrap(); |
| 1385 | assert_eq!(from, "change:abc"); |
| 1386 | assert_eq!(to, "file:auth.rs"); |
| 1387 | assert_eq!(kind, crate::kg::ontology::Predicate::ModifiesFile.iri()); |
| 1388 | } |
| 1389 | |
| 1390 | #[test] |
| 1391 | fn test_tokenize_for_fts() { |
nothing calls this directly
no test coverage detected