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

Function test_edge_key_roundtrip

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

Source from the content-addressed store, hash-verified

1076
1077 #[test]
1078 fn test_edge_key_roundtrip() {
1079 let key = encode_edge_key("change:abc", "file:auth.rs", "MODIFIES");
1080 let (from, to, kind) = decode_edge_key(&key).unwrap();
1081 assert_eq!(from, "change:abc");
1082 assert_eq!(to, "file:auth.rs");
1083 assert_eq!(kind, "MODIFIES");
1084 }
1085
1086 #[test]
1087 fn test_tokenize_for_fts() {

Callers

nothing calls this directly

Calls 3

encode_edge_keyFunction · 0.85
decode_edge_keyFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected