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

Function test_edge_key_roundtrip

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

Source from the content-addressed store, hash-verified

1107
1108 #[test]
1109 fn test_edge_key_roundtrip() {
1110 let key = encode_edge_key("change:abc", "file:auth.rs", "MODIFIES");
1111 let (from, to, kind) = decode_edge_key(&key).unwrap();
1112 assert_eq!(from, "change:abc");
1113 assert_eq!(to, "file:auth.rs");
1114 assert_eq!(kind, "MODIFIES");
1115 }
1116
1117 #[test]
1118 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