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

Function test_embedding_key_roundtrip

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

Source from the content-addressed store, hash-verified

1141
1142 #[test]
1143 fn test_embedding_key_roundtrip() {
1144 let key = encode_embedding_key("memory/arch.md", 3);
1145 let (path, idx) = decode_embedding_key(&key).unwrap();
1146 assert_eq!(path, "memory/arch.md");
1147 assert_eq!(idx, 3);
1148 }
1149
1150 #[test]
1151 fn test_embedding_key_zero_chunk() {

Callers

nothing calls this directly

Calls 3

encode_embedding_keyFunction · 0.85
decode_embedding_keyFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected