MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_edge_key_roundtrip

Function test_edge_key_roundtrip

atomic-core/src/pristine/tables.rs:1378–1388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 4

encode_edge_keyFunction · 0.85
decode_edge_keyFunction · 0.85
iriMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected