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

Function test_embedding_key_zero_chunk

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

Source from the content-addressed store, hash-verified

1109
1110 #[test]
1111 fn test_embedding_key_zero_chunk() {
1112 let key = encode_embedding_key("memory/arch.md", 0);
1113 let (path, idx) = decode_embedding_key(&key).unwrap();
1114 assert_eq!(path, "memory/arch.md");
1115 assert_eq!(idx, 0);
1116 }
1117
1118 #[test]
1119 fn test_embedding_key_decode_invalid() {

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