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

Function test_edge_key_roundtrip

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

Source from the content-addressed store, hash-verified

1067
1068 #[test]
1069 fn test_edge_key_roundtrip() {
1070 let key = encode_edge_key("change:abc", "file:auth.rs", "MODIFIES");
1071 let (from, to, kind) = decode_edge_key(&key).unwrap();
1072 assert_eq!(from, "change:abc");
1073 assert_eq!(to, "file:auth.rs");
1074 assert_eq!(kind, "MODIFIES");
1075 }
1076
1077 #[test]
1078 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